gnuPOA poa = (gnuPOA) iter.next();
poa = (gnuPOA) iter.next();
  public void waitForIdle()  {    if (state == State.ACTIVE)      throw new BAD_INV_ORDER("The state is active");    Iterator iter = POAs.iterator();    while (iter.hasNext())      {        gnuPOA poa = (gnuPOA) iter.next();        poa.waitWhileRunning();      }  }