docs: @Override
      @FFDCIgnore(NumberFormatException.class)
      public int getHttpPort(String hostAlias) {
          int pos = hostAlias.lastIndexOf(':');
          if (pos > -1 && pos < hostAlias.length()) {
              try {
                  int port = Integer.valueOf(hostAlias.substring(pos + 1));
                  for (EndpointState state : myEndpoints.values()) {
                      if (state.httpPort == port || state.httpsPort == port) {
                          return state.httpPort;
                      }
                  }
              } catch (NumberFormatException nfe) {
              }
          }
          return -1;
      }