fix problem with EntityManager. add service to management project