code: private void setMethods(String methodList) {
          String[] methodNames = methodList.trim().split(",");
          for (String methodName : methodNames) {
              HttpMethod method = HttpMethod.valueOf(methodName.trim().toUpperCase());
              Utils.require(method != null, "Unknown REST method: " + methodName);
              m_methods.add(method);
          }
      }
docs: Set methods from a CSV list.