protected boolean hasResult(Map<String,String> results,String result){
  if (results != null) {
    for (    String str : results.values()) {
      if (str.startsWith(result)) {
        return true;
      }
    }
  }
  return false;
}

protected boolean hasResult ( Map < String , String > results , String result ) { if ( results != null ) { for ( String str : results . values ( ) ) { if ( str . startsWith ( result ) ) { return true ; } } } return false ; }
returns true if at least item in the results matches the desired result .
