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