if (myOrganization_ == null) { Enumeration new_orgs = selfOrganizations_.elements(); if (new_orgs.hasMoreElements()) { myOrganization_ = (Organization) new_orgs.nextElement(); String clusterId= myOrganization_.getClusterPG().getMessageAddress().toString(); myOrgName_ = myOrganization_.getItemIdentificationPG().getItemIdentification(); } }
if (myOrganization_ == null) { Enumeration new_orgs = selfOrganizations_.elements(); if (new_orgs.hasMoreElements()) { myOrganization_ = (Organization) new_orgs.nextElement(); myOrgName_ = myOrganization_.getItemIdentificationPG().getItemIdentification(); } }
    private void configure()    {	if (configured_) {	    if (selfOrganizations_.getAddedList().hasMoreElements()) {		// We should handle changes in our org role and update processors accordingly.		GLMDebug.ERROR("DecorationPlugin",clusterId_, "orgs changed after decoration");	    }	    return;	}	// look for this organization	if (myOrganization_ == null) {	    Enumeration new_orgs = selfOrganizations_.elements();	    if (new_orgs.hasMoreElements()) {		myOrganization_ = (Organization) new_orgs.nextElement();		String clusterId= myOrganization_.getClusterPG().getMessageAddress().toString();                myOrgName_ = myOrganization_.getItemIdentificationPG().getItemIdentification();	    }	}	if (myOrganization_ == null) return;	// found the organization	// Grab plugin parameters for the decorator	readParameters();	decoratePlugin();	configured_ = true;    }