{     if (candidate instanceof ChoiceImpl) { ((ChoiceImpl)candidate).setSignet(this.signet); }
{
  public Choice getChoiceByValue(String value)  throws ChoiceNotFoundException  {    Iterator choicesIterator = this.getChoices().iterator();    while (choicesIterator.hasNext())    {      Choice candidate = (Choice)(choicesIterator.next());      if (candidate.getValue().equals(value))      {        // Let's make sure that each of this Choice object contains a        // valid Signet reference before we let it out into the wider        // world.                if (candidate instanceof ChoiceImpl)        {          ((ChoiceImpl)candidate).setSignet(this.signet);        }              return candidate;      }    }        // If we've gotten this far, then the requested value was not    // found.    throw new ChoiceNotFoundException    	("The ChoiceSet with ID '"    	 + this.getId()    	 + "' does not contain a Choice with value '"    	 + value    	 + "'.");  }