((NewTask)newtask).setContext(parentTask.getContext());
  Task makeTask (Task parentTask, Asset directObject, ForUnitPG unitPG) {    Task newtask = expandHelper.makeSubTask (ldmf,					     parentTask,					     directObject,					     getAgentIdentifier());    glmPrepHelper.removePrepNamed(newtask, Constants.Preposition.OFTYPE);    if (unitPG == null) {      // Next four lines create a Property Group for unit and attach it to all assets attached to task      unitPG = (ForUnitPG)ldmf.createPropertyGroup(ForUnitPG.class);      if (!glmPrepHelper.hasPrepNamed (newtask,Constants.Preposition.FOR)) {	String owner = directObject.getUID().getOwner();	if (isWarnEnabled()) {	  warn (".makeTask - WARNING : got task " + parentTask.getUID() + 		" which has no FOR unit prep, using owner - " + owner + ".");	}		((NewForUnitPG)unitPG).setUnit(owner);      } else {	((NewForUnitPG)unitPG).setUnit((String)glmPrepHelper.getIndirectObject(newtask,Constants.Preposition.FOR));	glmPrepHelper.removePrepNamed(newtask, Constants.Preposition.FOR);      }    }	    attachPG(directObject, unitPG);    return newtask;  }