public void from(net.sf.mpxj.Resource mpxResource, Resource resource, MpxImportState state) {
//convert fields
FieldUtil.convertFields(resource, net.sf.mpxj.Resource.class, mpxResource, fieldsToConvert, true);
//convert calendar
WorkCalendar calendar;
if (mpxResource.getResourceCalendar()==null){
calendar=state.getProjectBaseCalendar();
}else{
calendar=new DefaultWorkCalendar();
calendar.setName(mpxResource.getName());
MpxCalendarConverter calendarConverter=new MpxCalendarConverter();
calendarConverter.from(mpxResource.getResourceCalendar(), calendar, state);
}
resource.setCalendar(calendar);
}