private void addToSearchCriteriaParameterMap(String key,String value){
  if (searchCriteriaParameterMap.containsKey(key)) {
    ArrayList<String> arrayList=searchCriteriaParameterMap.get(key);
    arrayList.add(value);
    searchCriteriaParameterMap.put(key,arrayList);
  }
 else {
    ArrayList<String> arrayList=new ArrayList<>();
    arrayList.add(value);
    searchCriteriaParameterMap.put(key,arrayList);
  }
}

private void addToSearchCriteriaParameterMap ( String key , String value ) { if ( searchCriteriaParameterMap . containsKey ( key ) ) { ArrayList < String > arrayList = searchCriteriaParameterMap . get ( key ) ; arrayList . add ( value ) ; searchCriteriaParameterMap . put ( key , arrayList ) ; } else { ArrayList < String > arrayList = new ArrayList < > ( ) ; arrayList . add ( value ) ; searchCriteriaParameterMap . put ( key , arrayList ) ; } }
function to add the search criteria parameters to the map as the query is being parsed .
