if (pspState.ignoreAssets) continue;
  private static List getObjects(      PlanServiceContext psc,      PlanPSPState pspState) {    // create predicate    UnaryPredicate pred = getPred();    // query    Collection col =       psc.getServerPlugInSupport().queryForSubscriber(pred);    int colSize = col.size();    // check limit    int maxRetSize;    if (pspState.limit < colSize) {      maxRetSize = pspState.limit + 1;    } else {      maxRetSize = colSize;    }    // build result list    //    // assume maximum List size, since most objects are kept    List ret = new ArrayList(maxRetSize);    int retSize = 0;    // keep agent name for later use    String agent =       psc.getServerPlugInSupport().getClusterIDAsString();    // scan query results    Iterator iter = col.iterator();    for (int i = 0; i < colSize; i++) {      Object planObject = iter.next();      // scan object      if (planObject instanceof Asset) {        Asset asset = (Asset)planObject;        if ((asset.hasClusterPG()) &&            (asset instanceof HasRelationships) &&            (!((HasRelationships)asset).isLocal())) {          // ignore non-local agent assets          //          // add below back in once Communities are added?          //    (asset.hasCommunityPG())          continue;         }      } else if (          (pspState.ignorePlanElements) &&           (planObject instanceof PlanElement)) {        continue; // optionally ignore plan elements      } else if (          (!(pspState.ignoreWorkflows)) &&           (planObject instanceof Expansion)) {         // optionally include workflows        Workflow workflow = ((Expansion)planObject).getWorkflow();        Object wObj = TranslateUtils.toPropertyTree(workflow, agent);        // TranslateUtils will return null for some objects        if (wObj != null) {          ret.add(wObj);          if (++retSize >= maxRetSize) {            // reached our limit            break;          }        }      }      // translate to a property-tree      Object tmp = TranslateUtils.toPropertyTree(planObject, agent);      if (tmp != null) {        ret.add(tmp);        if (++retSize >= maxRetSize) {          // reached our limit          break;        }      }    }    return ret;  }