Playing around with ways to create a Java RESTful API