feature request #7664
Use typified return types where possible
- Many method of service layer and persistence use T as return type even if a more specific class is defined by parameters.
We should clean this up by using local generics where possible.
- Also we may want to add more methods defining the expected return type within the parameters to avoid invalid results and to avoid casting.