code: private String getMethod() {
          String methods = this.metadataJson.getString(METHODS);
          if (methods.contains(HttpMethod.POST.name())) { 
              return HttpMethod.POST.name();
          }
          else if (methods.contains(HttpMethod.PUT.name())) {
              return HttpMethod.PUT.name();
          }
          else {
              return methods;
          }
      }
docs: convenient methods