Removed depricated EntityManager functions and changed the container cal...

Removed depricated functions (getEntityManager) and fixed the not anymore public "getContainer" function