code: private static EndPointInfo defineEndPoint(EndPointMgr epm, String name, String[] config) {
          String host = null;
          String port = null;
          for (int i = 0; i < config.length; i++) {
              String key = ChannelUtils.extractKey(config[i]);
              if ("host".equalsIgnoreCase(key)) {
                  host = ChannelUtils.extractValue(config[i]);
              } else if ("port".equalsIgnoreCase(key)) {
                  port = ChannelUtils.extractValue(config[i]);
              }
          }
          return epm.defineEndPoint(name, host, Integer.parseInt(port));
      }
docs: Define a new endpoint definition using the input name and list of
  properties.
  
  @param name
  @param config
  @return EndPointInfo
  @throws IllegalArgumentException if input values are incorrect