java RESTful service with ember front end