code: private static Map<HttpMethod, Operation> getOperationMap(Path path) {
          Map<HttpMethod, Operation> result = new LinkedHashMap<>();
  
          if (path.getGet() != null) {
              result.put(HttpMethod.GET, path.getGet());
          }
          if (path.getPut() != null) {
              result.put(HttpMethod.PUT, path.getPut());
          }
          if (path.getPost() != null) {
              result.put(HttpMethod.POST, path.getPost());
          }
          if (path.getDelete() != null) {
              result.put(HttpMethod.DELETE, path.getDelete());
          }
          if (path.getPatch() != null) {
              result.put(HttpMethod.PATCH, path.getPatch());
          }
          if (path.getHead() != null) {
              result.put(HttpMethod.HEAD, path.getHead());
          }
          if (path.getOptions() != null) {
              result.put(HttpMethod.OPTIONS, path.getOptions());
          }
  
          return result;
      }
docs: Returns the operations of a path as a map which preserves the insertion order.
  
  @param path the path
  @return the operations of a path as a map