xml.setFinish(DatatypeConverter.printDate(mpx.getFinish()));
xml.setFinishText(mpx.getFinishText());
xml.setFinishVariance(DatatypeConverter.printDurationInIntegerThousandthsOfMinutes(mpx.getFinishVariance()));
xml.setFixedCost(DatatypeConverter.printCurrency(mpx.getFixedCost()));
AccrueType fixedCostAccrual = mpx.getFixedCostAccrual();
if (fixedCostAccrual == null)
{
fixedCostAccrual = AccrueType.PRORATED;
}
xml.setFixedCostAccrual(fixedCostAccrual);