protected void importCalendars(Project project) {
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);
try {
project.getCalendarManager().addBaseCalendar(calendar);
state.mapBaseCalendar(calendar,mpxBaseCalendar);
} catch (DuplicateCalendarException e) {
// TODO Auto-generated catch block