code: private void readResource(net.sf.mpxj.ganttproject.schema.Resource gpResource)
     {
        Resource mpxjResource = m_projectFile.addResource();
        mpxjResource.setUniqueID(Integer.valueOf(NumberHelper.getInt(gpResource.getId()) + 1));
        mpxjResource.setName(gpResource.getName());
        mpxjResource.setEmailAddress(gpResource.getContacts());
        mpxjResource.setText(1, gpResource.getPhone());
        mpxjResource.setGroup(m_roleDefinitions.get(gpResource.getFunction()));
  
        net.sf.mpxj.ganttproject.schema.Rate gpRate = gpResource.getRate();
        if (gpRate != null)
        {
           mpxjResource.setStandardRate(new Rate(gpRate.getValueAttribute(), TimeUnit.DAYS));
        }
        readResourceCustomFields(gpResource, mpxjResource);
        m_eventManager.fireResourceReadEvent(mpxjResource);
     }
docs: This method extracts data for a single resource from a GanttProject file.
  
  @param gpResource resource data