private static List getObjects() {
private List getObjects() {
    private static List getObjects() {            // create predicate      UnaryPredicate pred = getPred();            // query      Collection col = 	support.queryBlackboard(pred);            int colSize = col.size();            // check limit      int maxRetSize;      if (limit < colSize) {	maxRetSize = 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 = 	support.getAgentIdentifier().getAddress();            // scan query results      Iterator iter = col.iterator();      for (int i = 0; i < colSize; i++) {	Object planObject = iter.next();		// scan object	if (planObject instanceof Asset) {	  if (ignoreAssets)         	    continue;	  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 (		   (ignorePlanElements) && 		   (planObject instanceof PlanElement)) {	  continue; // optionally ignore plan elements	} else if (		   (!(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;    }