private boolean isValidSearch(Map<String,List<String>> params,String[] criterias){
  for (  String search : criterias) {
    if (params.containsKey(search)) {
      return true;
    }
  }
  return false;
}

private boolean isValidSearch ( Map < String , List < String > > params , String [ ] criterias ) { for ( String search : criterias ) { if ( params . containsKey ( search ) ) { return true ; } } return false ; }
validate if one param passed is valid .
