Iterator choicesIterator = this.choices.iterator(); while (choicesIterator.hasNext()) { Choice choice = (Choice)(choicesIterator.next()); if (choice instanceof ChoiceImpl) { ((ChoiceImpl)choice).setSignet(this.signet); } }
  public Set getChoices()  {    // Let's make sure that each of these Choice objects contains a    // valid Signet reference before we let them  out into the wider    // world.        Iterator choicesIterator = this.choices.iterator();    while (choicesIterator.hasNext())    {      Choice choice = (Choice)(choicesIterator.next());      if (choice instanceof ChoiceImpl)      {        ((ChoiceImpl)choice).setSignet(this.signet);      }    }        return this.choices;  }