Collection communities = communityPG.getCommunities(); if (communities.size() > 1) System.out.println("PSP_CommunityProvider: WARNING: handling agents in multiple communities is not implemented."); Iterator i = communities.iterator();
  private Vector getSelfInformation(PlanServiceContext psc) {    Collection container =       psc.getServerPlugInSupport().queryForSubscriber(getSelfPred());    Iterator iter = container.iterator();    Vector results = new Vector(1);    int n = 0; // unique index for relationships    while (iter.hasNext()) {      Asset asset = (Asset)iter.next();      PropertyTree properties = new PropertyTree();      properties.put(PropertyNames.UID_ATTR, getUIDAsString(asset.getUID()));      //      String name = asset.getItemIdentificationPG().getNomenclature();      // THIS METHOD OF ACCESSING AGENT NAME MUST MATCH HOW OTHER PSPS      // (ESPECIALLY PSP_PLAN) ACCESS THE AGENT NAME SO COMPARISONS      // CAN BE MADE AT THE CLIENT      String name = psc.getServerPlugInSupport().getClusterIDAsString();      properties.put(PropertyNames.AGENT_NAME, name);      CommunityPG communityPG = asset.getCommunityPG(new Date().getTime());      Collection communities = communityPG.getCommunities();      if (communities.size() > 1) 	System.out.println("PSP_CommunityProvider: WARNING: handling agents in multiple communities is not implemented.");      Iterator i = communities.iterator();      String communityName = null;      while (i.hasNext()) {	communityName = (String)i.next();	break;      }      if (communityName != null)	properties.put(PropertyNames.AGENT_COMMUNITY_NAME, communityName);      URL url = psc.lookupURL(psc.getServerPlugInSupport().getClusterIDAsString());      if (url != null)	properties.put(PropertyNames.AGENT_URL, url.toString());      results.add(properties);    }    return results;  }