Propper use of generics and added some extra useful methods to
EntityManager and EntityWrapper (wrapper always reflects the methods in
the manager that are specific to the entity).