docs: private CmsPrincipal getPrincipal(CmsObject cms, DialogType type, CmsUUID id) throws CmsException {
  
          if (type.equals(DialogType.Group)) {
              return cms.readGroup(id);
          }
          if (type.equals(DialogType.User)) {
              return cms.readUser(id);
          }
          return null;
      }