if (workCalendar.isBaseCalendar())
wc = (WorkingCalendar) workCalendar.getBaseCalendar();
for (int i = 0; i < 7; i++) {// MPX days go from SUNDAY=1 to SATURDAY=7
WorkDay day= workCalendar.isBaseCalendar() ? workCalendar.getDerivedWeekDay(i) : workCalendar.getWeekDay(i);
ProjectCalendarHours mpxDay = null;
Day d = Day.getInstance(i+1);
if (day == null) {
mpx.setWorkingDay(d,DayType.DEFAULT); // claur
} else {
mpx.setWorkingDay(d,day.isWorking());
if (day.isWorking()) {