code: public void addMethod(final String resource, final ResourceMethod method) {
          resources.putIfAbsent(resource, new HashSet<>());
          resources.get(resource).add(method);
      }
docs: Adds the method to the resource's methods.
  
  @param resource The resource path where to add
  @param method   The method to add