Enumeration new_orgs = myOrganizations.elements(); if (new_orgs.hasMoreElements()) { myOrg = (Organization) new_orgs.nextElement();
Iterator new_orgs = queryService.query(orgsPredicate).iterator(); if (new_orgs.hasNext()) { myOrg = (Organization) new_orgs.next();
  protected void configure() {    Enumeration new_orgs = myOrganizations.elements();    if (new_orgs.hasMoreElements()) {       myOrg = (Organization) new_orgs.nextElement();      Service srvc = myOrg.getOrganizationPG().getService();      if (srvc != null) {	service= srvc.toString();        configured = true;      } else {        logger.error("Organization has no Service :"+                     myOrg.getItemIdentificationPG().getItemIdentification());      }    } // if  } // configure