code: private boolean isRequestMethodServed(Method method, HttpMethod httpMethod) {
  		boolean accepts = false;
  		switch (httpMethod) {
  		case GET:
  			accepts = method.getAnnotation(GET.class) != null;
  			break;
  		case POST:
  			accepts = method.getAnnotation(POST.class) != null;
  			break;
  		case PUT:
  			accepts = method.getAnnotation(PUT.class) != null;
  			break;
  		case DELETE:
  			accepts = method.getAnnotation(DELETE.class) != null;
  			break;
  		default:
  			throw new IllegalArgumentException("HTTP method not supported: " + httpMethod);
  		}
  		return accepts;
  	}
docs: Checks if a resource's method attends HTTP requests using a concrete
  HTTP_METHOD (GET, POST, PUT, DELETE). A method accept a particular
  HTTP_METHOD if it's annotated with the correct annotation (@GET, @POST,
  @PUT, @DELETE).
  
  @param method
  A class's method.
  @param httpMethod
  HTTP_METHOD that comes in the request.
  @return <code>true</code> if the method accepts that HTTP_METHOD,
  <code>false</code> otherwise.
  
  @throws IllegalArgumentException
  if HttpMethod is not supported.