String header ="<" + INVENTORY_DUMP_TAG + " org=" + orgId + " item=" + assetName;
    protected void logToXMLOutput(Asset invAsset,				  Organization anOrg,				  ArrayList withdrawList,				  ArrayList projWithdrawList,				  ArrayList countedDemandList,				  ArrayList resupplyList,				  ArrayList projResupplyList,				  Schedule  reorderLevels,				  Schedule  inventoryLevels,				  Schedule  targetLevels,				  long aCycleStamp) {	cycleStamp = aCycleStamp;	String orgId = anOrg.getItemIdentificationPG().getItemIdentification();	String assetName = invAsset.getTypeIdentificationPG().getTypeIdentification();	String header ="<" + INVENTORY_DUMP_TAG + " org=" + orgId + " item=" + assetName;		header = header + " unit=" + getUnitForAsset(invAsset) + " cDay=" + startCDay.getTime() + ">";	writeNoCycleLn(header);	ArrayList countedProjWithdrawList = extractProjFromCounted(countedDemandList);	logDemandToXMLOutput(withdrawList,projWithdrawList,countedProjWithdrawList,aCycleStamp);	logResupplyToXMLOutput(resupplyList,projResupplyList,aCycleStamp);	logLevelsToXMLOutput(reorderLevels,inventoryLevels,targetLevels,aCycleStamp);	writeNoCycleLn("</" + INVENTORY_DUMP_TAG + ">");	try {	    output.flush();	}	catch(IOException e) {	    logger.error("Exception when trying to flush xml stream." + e.toString());	}    }