code: private void readRoleDefinitions(Project gpProject)
     {
        m_roleDefinitions.put("Default:1", "project manager");
  
        for (Roles roles : gpProject.getRoles())
        {
           if ("Default".equals(roles.getRolesetName()))
           {
              continue;
           }
  
           for (Role role : roles.getRole())
           {
              m_roleDefinitions.put(role.getId(), role.getName());
           }
        }
     }
docs: Read the role definitions from a GanttProject project.
  
  @param gpProject GanttProject project