code: protected String getDefaultEndpoint(HttpServletRequest request) {
          StringBuilder builder = new StringBuilder();
          builder.append(request.getScheme()).append("://") //$NON-NLS-1$
                  .append(request.getServerName()).append(":") //$NON-NLS-1$
                  .append(request.getServerPort()).append("/apiman"); //$NON-NLS-1$
          return builder.toString();
      }
docs: Gets the default API endpoint by using information the current
  {@link HttpServletRequest}.
  
  @param request