code: private static void listResources(ProjectFile file)
     {
        for (Resource resource : file.getResources())
        {
           System.out.println("Resource: " + resource.getName() + " (Unique ID=" + resource.getUniqueID() + ") Start=" + resource.getStart() + " Finish=" + resource.getFinish());
        }
        System.out.println();
     }
docs: This method lists all resources defined in the file.
  
  @param file MPX file