Why do you provide javax.ws.rs.HttpMethod only in this method? I think you should follow the "boy scout rule" and change all includes of "GET", "POST" etc with HttpMethod usage!