private static boolean containsMultipleRemoteAddresses(String ip) {
    return ip != null && ip.indexOf(",") > 0;
  }
Checks if ip contains multiple IP addresses
ambari-server/src/main/java/org/apache/ambari/server/utils/RequestUtils.java