public void validateSolrConnectionString(){
  if (solrMode.equals(SINGLE_NODE_MODE) && solrHost.contains(",")) {
    throw new IllegalArgumentException(String.format("Multiple hosts '%s' found for Single Node Solr.",solrHost));
  }
}

public void validateSolrConnectionString ( ) { if ( solrMode . equals ( SINGLE_NODE_MODE ) && solrHost . contains ( "," ) ) { throw new IllegalArgumentException ( String . format ( "Multiple hosts '%s' found for Single Node Solr." , solrHost ) ) ; } }
validates whether the host entered for single node solr instance is proper or not .
