Add createEntity method to EntityManager

Add createEntity method to EntityManager