Hibernate spark REST service