state.setCalendarManager(project.getCalendarManager());
state.setProjectTitle(mpxProjectFile.getProjectHeader().getProjectTitle());
MpxCalendarConverter converter=new MpxCalendarConverter();
for (ProjectCalendar mpxBaseCalendar : mpxProjectFile.getBaseCalendars()) {
WorkCalendar calendar=new DefaultWorkCalendar();
if (ProjectCalendar.DEFAULT_BASE_CALENDAR_NAME.equals(mpxBaseCalendar.getName())){
state.setMpxStandardBaseCalendar(mpxBaseCalendar);
project.getCalendarManager().setStandardBaseCalendar(calendar);
}
converter.from(mpxBaseCalendar, calendar, state);