We should remove the use of setResidual() and setMatrix() methods and instead use prepare() with the SparseMatrixAdapter and Vector directly. This would simplify the interface and reduce the number of required method calls before solving the system.
implement this class generically. For this, it must be possible to query the mapper whether it contains entities of a given codimension without the need to hand it an actual entity.