if(aTask == null) {return;}
    protected void logAllocationResult(Task aTask, boolean expandTimestamp) {	PlanElement pe = aTask.getPlanElement();	if(pe == null) { return; }	String resultType="REPORTED";	AllocationResult ar = pe.getReportedResult();	if(ar == null) {	    resultType = "ESTIMATED";	    ar = pe.getEstimatedResult();	}	if(ar != null) {	    String taskStr = buildTaskPrefixString(aTask);	    taskStr = taskStr + resultType + ",";	    if(!ar.isPhased()) {		String outputStr = taskStr + getDateString(TaskUtils.getStartTime(ar),expandTimestamp) + ",";		outputStr = outputStr + getDateString(TaskUtils.getEndTime(ar),expandTimestamp) + ",";		outputStr = outputStr + TaskUtils.getQuantity(ar);		writeln(outputStr);	    }	    else {		int[] ats = ar.getAspectTypes();		int qtyInd = getIndexForType(ats,AspectType.QUANTITY);		int startInd = getIndexForType(ats,AspectType.START_TIME);		int endInd = getIndexForType(ats,AspectType.END_TIME);		Enumeration phasedResults = ar.getPhasedResults();		while(phasedResults.hasMoreElements()) {		    double[] results = (double[])phasedResults.nextElement();		    String outputStr = taskStr;		    if(startInd == -1) {			outputStr += ",,";		    } 		    else {			outputStr += getDateString(results[startInd],expandTimestamp) + ",";		    }		    outputStr += getDateString(results[endInd],expandTimestamp) + ",";		    outputStr += results[qtyInd];		    writeln(outputStr);		}	    }	}    }    