REST API Implementation using Spring3