code: private void readResources()
     {
        for (MapRow row : getTable("RTAB"))
        {
           Resource resource = m_projectFile.addResource();
           setFields(RESOURCE_FIELDS, row, resource);
           m_eventManager.fireResourceReadEvent(resource);
           // TODO: Correctly handle calendar
        }
     }
docs: Read resource data from a PEP file.