Basic Java RESTful API Implementation (using GlassFish)