code: private void writeResources(Project project)
     {
        Project.Resources resources = m_factory.createProjectResources();
        project.setResources(resources);
        List<Project.Resources.Resource> list = resources.getResource();
  
        for (Resource resource : m_projectFile.getResources())
        {
           list.add(writeResource(resource));
        }
     }
docs: This method writes resource data to an MSPDI file.
  
  @param project Root node of the MSPDI file