code: private void processResources() throws IOException
     {
        CompanyReader reader = new CompanyReader(m_data.getTableData("Companies"));
        reader.read();
        for (MapRow companyRow : reader.getRows())
        {
           // TODO: need to sort by type as well as by name!
           for (MapRow resourceRow : sort(companyRow.getRows("RESOURCES"), "NAME"))
           {
              processResource(resourceRow);
           }
        }
     }
docs: Extract resource data.