code: private void vaildateHostPort(String host, String port)
      {
          if (host == null || !StringUtils.isNumeric(port) || port.isEmpty())
          {
              logger.error("Host or port should not be null / port should be numeric");
              throw new IllegalArgumentException("Host or port should not be null / port should be numeric");
          }
      }
docs: Vaildate host port.
  
  @param host
  the host
  @param port
  the port