protected StringBuilder appendSearchStringParamIfNecessary(StringBuilder sb){
  String searchStringParam=getEncodedSearchStringParam();
  if (searchStringParam != null) {
    if (sb.indexOf("?") == -1) {
      sb.append('?');
    }
 else {
      sb.append('&');
    }
    sb.append(searchStringParam);
  }
  return sb;
}

protected StringBuilder appendSearchStringParamIfNecessary ( StringBuilder sb ) { String searchStringParam = getEncodedSearchStringParam ( ) ; if ( searchStringParam != null ) { if ( sb . indexOf ( "?" ) == - 1 ) { sb . append ( '?' ) ; } else { sb . append ( '&' ) ; } sb . append ( searchStringParam ) ; } return sb ; }
if a search has been executed , appends a url - encoded string representation of the search criteria to the given stringbuilder , as a get parameter . the stringbuilder ' s contents are modified .
