code: private void writeResource(Resource mpxjResource, net.sf.mpxj.planner.schema.Resource plannerResource)
     {
        ProjectCalendar resourceCalendar = mpxjResource.getResourceCalendar();
        if (resourceCalendar != null)
        {
           plannerResource.setCalendar(getIntegerString(resourceCalendar.getUniqueID()));
        }
  
        plannerResource.setEmail(mpxjResource.getEmailAddress());
        plannerResource.setId(getIntegerString(mpxjResource.getUniqueID()));
        plannerResource.setName(getString(mpxjResource.getName()));
        plannerResource.setNote(mpxjResource.getNotes());
        plannerResource.setShortName(mpxjResource.getInitials());
        plannerResource.setType(mpxjResource.getType() == ResourceType.MATERIAL ? "2" : "1");
        //plannerResource.setStdRate();
        //plannerResource.setOvtRate();
        plannerResource.setUnits("0");
        //plannerResource.setProperties();
        m_eventManager.fireResourceWrittenEvent(mpxjResource);
     }
docs: This method writes data for a single resource to a Planner file.
  
  @param mpxjResource MPXJ Resource instance
  @param plannerResource Planner Resource instance