code: protected static void initEndpointInfo(EndpointInfo endpoint) {
          endpoint.setRegex(createRegex(endpoint.getEndpoint(), endpoint.metaURI()));
  
          String uri = EndpointUtil.decodeEndpointURI(endpoint.getEndpoint());
          if (uri != null) {
              endpoint.setUriRegex(createRegex(uri, endpoint.metaURI()));
          }
  
          if (uri != null && endpoint.metaURI()) {
              StringBuilder template = new StringBuilder();
  
              String[] parts = uri.split("/");
  
              String part = null;
              int paramNo = 1;
  
              for (int j = 1; j < parts.length; j++) {
                  template.append("/");
  
                  if (parts[j].equals("*")) {
                      if (part == null) {
                          template.append("{");
                          template.append("param");
                          template.append(paramNo++);
                          template.append("}");
                      } else {
                          // Check if plural
                          if (part.length() > 1 && part.charAt(part.length() - 1) == 's') {
                              part = part.substring(0, part.length() - 1);
                          }
                          template.append("{");
                          template.append(part);
                          template.append("Id}");
                      }
                      part = null;
                  } else {
                      part = parts[j];
                      template.append(part);
                  }
              }
  
              endpoint.setUriTemplate(template.toString());
          }
      }
docs: This method initialises the endpoint information.
  
  @param endpoint The endpoint information