code: public static HttpEndpointImpl findEndpoint(String endpointId) {
          for (HttpEndpointImpl i : instance.get()) {
              if (i.getName().equals(endpointId))
                  return i;
          }
          return null;
      }
docs: Return the endpoint for the given id.
  
  @param endpointId
  
  @return The endpoint associated with the id, or null.