protected void logTask(Task aTask,boolean expandTimestamp, boolean isCountedTask) { if(aTask == null){ return; } String taskStr = buildTaskPrefixString(aTask); if(TaskUtils.getPreferenceBest(aTask, AspectType.START_TIME) == null) { taskStr+= ","; } else { long startTime = TaskUtils.getStartTime(aTask); if(isCountedTask && (TaskUtils.isProjection(aTask))) { startTime = logInvPG.getEffectiveProjectionStart(aTask,startTime); } taskStr = taskStr + getDateString(startTime,expandTimestamp) + ","; } taskStr = taskStr + getDateString(TaskUtils.getEndTime(aTask),expandTimestamp) + ",";  try { taskStr = taskStr + taskUtils.getDailyQuantity(aTask); } catch(ClassCastException e) { logger.error("Formatter:Problem task and the print out is :\n" + taskUtils.taskDesc(aTask)); throw e; } writeln(taskStr);
protected void logTask(Task aTask, boolean expandTimestamp, boolean isCountedTask) { if (aTask == null) { return;
    protected void logTask(Task aTask,boolean expandTimestamp, boolean isCountedTask) {	if(aTask == null){ return; }	String taskStr = buildTaskPrefixString(aTask);	if(TaskUtils.getPreferenceBest(aTask, AspectType.START_TIME) == null) {	    taskStr+= ",";	}	else {	    long startTime = TaskUtils.getStartTime(aTask);	    if(isCountedTask &&	       (TaskUtils.isProjection(aTask))) {		startTime = logInvPG.getEffectiveProjectionStart(aTask,startTime);	    }	    taskStr = taskStr + getDateString(startTime,expandTimestamp) + ",";	}	taskStr = taskStr + getDateString(TaskUtils.getEndTime(aTask),expandTimestamp) + ",";	//This is qty for supply, daily rate for projection	try {	    taskStr = taskStr + taskUtils.getDailyQuantity(aTask);	}	catch(ClassCastException e) {	    logger.error("Formatter:Problem task and the print out is :\n" + taskUtils.taskDesc(aTask));	    throw e;	}	writeln(taskStr);    }