Refactoring of the project in order to have a domain project that does not have a real dependency on technologies (a part the JPA specification) and a rest-app that has dependencies on technologies