if (eSelfOrgs.hasMoreElements()) { this.selfOrg = (Organization)eSelfOrgs.nextElement();
while (eSelfOrgs.hasMoreElements()) { Organization org = (Organization)eSelfOrgs.nextElement(); if (this.selfOrg != null) { printError( "Expecting only one \"SELF\" Organization! ignoring " + org); continue; } this.selfOrg = org;
  protected void watchAddedSelfOrgs(Enumeration eSelfOrgs) {    if (eSelfOrgs.hasMoreElements()) {      this.selfOrg = (Organization)eSelfOrgs.nextElement();      this.selfOrgId = getOrgID(selfOrg);      if (logger.isInfoEnabled()) {        printInfo("Found Self: "+this.selfOrgId);      }      if (eSelfOrgs.hasMoreElements()) {        printError(           "Expecting only one \"SELF\" Organization! ignoring the others");      }    }  }