distributeCommunityPolicies(communityVector.elements());
if (!communityVector.isEmpty()) { distributeCommunityPolicies(communityVector.elements()); }
  private void readInPolicies() {    if (logger.isDebugEnabled()) {      logger.debug("in readInPolicies");    }    try {      Collection pv = getParameters();      if ( pv != null ) {        if (logger.isDebugEnabled()) {          logger.debug("about to enter for loop vector size: " + pv.size());        }        // iterate through the list of XML Policy files to parse        Vector policyVector = new Vector();        Vector communityVector = new Vector();        for (Iterator pi = pv.iterator(); pi.hasNext();) {          xmlfilename = (String) pi.next();          if (logger.isDebugEnabled()) {            logger.debug("startsWith: " + xmlfilename.startsWith("POLICY="));          }          if (xmlfilename.startsWith("POLICY=")) {            xmlfilename = xmlfilename.replaceFirst("POLICY=", "");          }          policyCreator = new XMLPolicyCreator(xmlfilename,                                               getConfigFinder(),                                               theLDMF);          Policy policies[] = policyCreator.getPolicies();          String role = (String) pi.next();          if (role.startsWith("DESTINATION=")) {            role = role.replaceFirst("DESTINATION=", "");          }          if (logger.isDebugEnabled()) {            logger.debug("*******policies.length " + policies.length);          }          for (int i=0; i<policies.length; i++) {            if (myOrganization_ == null && logger.isDebugEnabled()) {              logger.debug("Org is null");            }            if (logger.isDebugEnabled()) {              logger.debug("policy UID: " + policies[i].getUID());            }            boolean continu = true;            for (Iterator t = allPolicies_.iterator(); t.hasNext();) {              Policy compP = (Policy) t.next();              if (compP.getName().equals(policies[i].getName())) {                continu = false;              }            }            if (continu == true) {              LogisticsPolicy lp = new LogisticsPolicy(policies[i], null, Collections.EMPTY_SET, myOrgName_, role);              if (role.equals("Subordinate") || role.equals("none")) {                policyVector.add(lp);              } else {                communityVector.add(lp);              }            }	  }	}        //	distributeCheckOrgs(policyVector.elements(), allOrganizations_.elements());	distributeCheckPolicies(policyVector.elements());	distributeCommunityPolicies(communityVector.elements());      }    } catch ( SubscriberException se ) {      se.printStackTrace();    }    policyRead = true;  }