if (!didSetCapacity) { Collection carriers = myAssetCallback.getSubscription().getCollection(); handleNewAssets(Collections.enumeration (carriers)); if (isWarnEnabled()) warn (getName() + ".getSubtasks - recalculated maxContainContrib after rehydration."); }  if (maxContainCapacity == Double.MAX_VALUE) { error (getName() + ".getSubtasks - maxContainCapacity has not been set, it's " + maxContainCapacity); }
  public Vector getSubtasks(Task task){    Vector subtasks = new Vector();    ForUnitPG unitPG = getForUnitPG (task.getDirectObject());    try{      if (prepHelper.hasPrepNamed (task, GLMTransConst.LOW_FIDELITY) &&	  (!isSelfPropelled  (task, task.getDirectObject()) || 	   (getBindingSite().getAgentIdentifier().toString().indexOf("Packer") != -1))) {	expandLowFi (task, subtasks);      }      else if (task.getDirectObject () instanceof AggregateAsset) {	expandAggregates (task, subtasks);	if (subtasks.isEmpty ())	  error (".getSubtasks -- ERROR - after expanding aggregate asset of task " +		 task + " got no subtasks.");      } else if (task.getDirectObject () instanceof AssetGroup) {	if (isDebugEnabled())	  debug(".getSubtasks - got asset group for task " + task.getUID());	Collection assets = assetHelper.expandAssetGroup ((AssetGroup)task.getDirectObject ());	for (Iterator iter = assets.iterator (); iter.hasNext ();) {	  Asset subasset = (Asset) iter.next();	  //		  if (subasset instanceof AggregateAsset)	  //			expandAggregates (task, subtasks);	  //		  else	  subtasks.add (makeTask (task, subasset, unitPG));	}	if (subtasks.isEmpty ())	  error (".getSubtasks -- ERROR - after expanding AssetGroup of task " +		 task + " got no subtasks.");      } else	subtasks.add(makeTask (task, task.getDirectObject (), unitPG));	      }catch(Exception e){      logger.error(e.getMessage(), e);    }    if (isDebugEnabled()) {      String uids = "";      for (Iterator iter = subtasks.iterator (); iter.hasNext (); )	uids = uids + ((Task) iter.next ()).getUID () + " ";	        debug (" created subtasks " + uids);    }	    if (subtasks.isEmpty())      error ("getSubtasks - tried to create subtasks for " +	     task.getUID () + " but couldn't.");    return subtasks;  }