public boolean isQuestInState(final String name,final String... states){
  final String questState=getQuest(name);
  if (questState != null) {
    for (    final String state : states) {
      if (questState.equals(state)) {
        return true;
      }
    }
  }
  return false;
}

public boolean isQuestInState ( final String name , final String ... states ) { final String questState = getQuest ( name ) ; if ( questState != null ) { for ( final String state : states ) { if ( questState . equals ( state ) ) { return true ; } } } return false ; }
is the named quest in one of the listed states ?
