*
* @param project Root node of the MSPDI file
*/
private void writeProjectHeader(Project project)
{
ProjectHeader header = m_projectFile.getProjectHeader();
project.setActualsInSync(Boolean.valueOf(header.getActualsInSync()));
project.setAdminProject(Boolean.valueOf(header.getAdminProject()));
project.setAuthor(header.getAuthor());
project.setAutoAddNewResourcesAndTasks(Boolean.valueOf(header.getAutoAddNewResourcesAndTasks()));
project.setAutolink(Boolean.valueOf(header.getAutolink()));
project.setBaselineForEarnedValue(NumberUtility.getBigInteger(header.getBaselineForEarnedValue()));
project.setCalendarUID(m_projectFile.getCalendar() == null ? BigInteger.ONE : NumberUtility.getBigInteger(m_projectFile.getCalendar().getUniqueID()));
project.setCategory(header.getCategory());
project.setCompany(header.getCompany());
project.setCreationDate(DatatypeConverter.printDate(header.getCreationDate()));
project.setCriticalSlackLimit(NumberUtility.getBigInteger(header.getCriticalSlackLimit()));
project.setCurrencyCode(header.getCurrencyCode());
project.setCurrencyDigits(BigInteger.valueOf(header.getCurrencyDigits().intValue()));
project.setCurrencySymbol(header.getCurrencySymbol());
project.setCurrencySymbolPosition(header.getSymbolPosition());
project.setCurrentDate(DatatypeConverter.printDate(header.getCurrentDate()));
project.setDaysPerMonth(NumberUtility.getBigInteger(header.getDaysPerMonth()));
project.setDefaultFinishTime(DatatypeConverter.printTime(header.getDefaultEndTime()));
project.setDefaultFixedCostAccrual(header.getDefaultFixedCostAccrual());
project.setDefaultOvertimeRate(DatatypeConverter.printRate(header.getDefaultOvertimeRate()));
project.setDefaultStandardRate(DatatypeConverter.printRate(header.getDefaultStandardRate()));
project.setDefaultStartTime(DatatypeConverter.printTime(header.getDefaultStartTime()));
project.setDefaultTaskEVMethod(DatatypeConverter.printEarnedValueMethod(header.getDefaultTaskEarnedValueMethod()));
project.setDefaultTaskType(header.getDefaultTaskType());
project.setDurationFormat(DatatypeConverter.printDurationTimeUnits(header.getDefaultDurationUnits(), false));
project.setEarnedValueMethod(DatatypeConverter.printEarnedValueMethod(header.getEarnedValueMethod()));
project.setEditableActualCosts(Boolean.valueOf(header.getEditableActualCosts()));
project.setExtendedCreationDate(DatatypeConverter.printDate(header.getExtendedCreationDate()));
project.setFinishDate(DatatypeConverter.printDate(header.getFinishDate()));
project.setFiscalYearStart(Boolean.valueOf(header.getFiscalYearStart()));
project.setFYStartDate(NumberUtility.getBigInteger(header.getFiscalYearStartMonth()));
project.setHonorConstraints(Boolean.valueOf(header.getHonorConstraints()));
project.setInsertedProjectsLikeSummary(Boolean.valueOf(header.getInsertedProjectsLikeSummary()));
project.setLastSaved(DatatypeConverter.printDate(header.getLastSaved()));
project.setManager(header.getManager());
project.setMicrosoftProjectServerURL(Boolean.valueOf(header.getMicrosoftProjectServerURL()));
project.setMinutesPerDay(NumberUtility.getBigInteger(header.getMinutesPerDay()));
project.setMinutesPerWeek(NumberUtility.getBigInteger(header.getMinutesPerWeek()));
project.setMoveCompletedEndsBack(Boolean.valueOf(header.getMoveCompletedEndsBack()));
project.setMoveCompletedEndsForward(Boolean.valueOf(header.getMoveCompletedEndsForward()));
project.setMoveRemainingStartsBack(Boolean.valueOf(header.getMoveRemainingStartsBack()));
project.setMoveRemainingStartsForward(Boolean.valueOf(header.getMoveRemainingStartsForward()));
project.setMultipleCriticalPaths(Boolean.valueOf(header.getMultipleCriticalPaths()));
project.setName(header.getName());
project.setNewTasksEffortDriven(Boolean.valueOf(header.getNewTasksEffortDriven()));
project.setNewTasksEstimated(Boolean.valueOf(header.getNewTasksEstimated()));
project.setNewTaskStartDate(header.getNewTaskStartIsProjectStart() == true ? BigInteger.ZERO : BigInteger.ONE);
project.setProjectExternallyEdited(Boolean.valueOf(header.getProjectExternallyEdited()));
project.setRemoveFileProperties(Boolean.valueOf(header.getRemoveFileProperties()));
project.setRevision(NumberUtility.getBigInteger(header.getRevision()));
project.setSaveVersion(BigInteger.valueOf(m_saveVersion.getValue()));
project.setScheduleFromStart(Boolean.valueOf(header.getScheduleFrom() == ScheduleFrom.START));
project.setSplitsInProgressTasks(Boolean.valueOf(header.getSplitInProgressTasks()));
project.setSpreadActualCost(Boolean.valueOf(header.getSpreadActualCost()));
project.setSpreadPercentComplete(Boolean.valueOf(header.getSpreadPercentComplete()));
project.setStartDate(DatatypeConverter.printDate(header.getStartDate()));
project.setStatusDate(DatatypeConverter.printDate(header.getStatusDate()));
project.setSubject(header.getSubject());
project.setTaskUpdatesResource(Boolean.valueOf(header.getUpdatingTaskStatusUpdatesResourceStatus()));
project.setTitle(header.getProjectTitle());
project.setUID(header.getUniqueID());
project.setWeekStartDay(DatatypeConverter.printDay(header.getWeekStartDay()));
project.setWorkFormat(DatatypeConverter.printWorkUnits(header.getDefaultWorkUnits()));
}