code: private void writeResources()
     {
        for (Resource resource : m_projectFile.getResources())
        {
           if (resource.getUniqueID().intValue() != 0)
           {
              writeResource(resource);
           }
        }
     }
docs: This method writes resource data to a PM XML file.