private static boolean evaluateOptionsRules(List reqOptions,List regOptions){
  if (reqOptions == null || regOptions == null || (reqOptions.size() == 0)) {
    return true;
  }
  Iterator i=reqOptions.iterator();
  while (i.hasNext()) {
    String option=(String)i.next();
    if (regOptions.contains(option)) {
      return true;
    }
  }
  return false;
}

private static boolean evaluateOptionsRules ( List reqOptions , List regOptions ) { if ( reqOptions == null || regOptions == null || ( reqOptions . size ( ) == 0 ) ) { return true ; } Iterator i = reqOptions . iterator ( ) ; while ( i . hasNext ( ) ) { String option = ( String ) i . next ( ) ; if ( regOptions . contains ( option ) ) { return true ; } } return false ; }
performs options matching for queries . the match succeeds if either list is null or if there is any intersection between the lists .
