code: @Override
      protected void onValidation(final String contactNode, final String defaultPort)
      {
          if (contactNode != null)
          {
              // allow configuration as comma-separated list of host:port
              // addresses without the default port
              boolean allAddressesHaveHostAndPort = true;
  
              for (String node : contactNode.split(Constants.COMMA))
              {
                  if (StringUtils.countMatches(node, Constants.COLON) == 1)
                  {
                      // node is given with hostname and port
                      // count == 1 is to exclude IPv6 addresses
                      if (StringUtils.isNumeric(node.split(Constants.COLON)[1]))
                      {
                          continue;
                      }
                  }
  
                  allAddressesHaveHostAndPort = false;
                  break;
              }
  
              if (allAddressesHaveHostAndPort)
              {
                  return;
              }
          }
  
          // fall back to the generic validation which requires the default port
          // to be set
          super.onValidation(contactNode, defaultPort);
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.loader.GenericClientFactory#onValidation(java.lang
  .String, java.lang.String)