moved jpa container creation to service layer