docs: private static Set<String> extractUserRoles(final UsersType.User user) {
          Set<String> roles = new TreeSet<>();
          if (user == null) {
              return roles;
          }
  
          if (user.getRoles() != null && !user.getRoles().trim().isEmpty()) {
              String [] rolelist = user.getRoles().trim().split(",");
              for (String role: rolelist) {
                  if( role == null || role.trim().isEmpty()) {
                      continue;
                  }
                  roles.add(role.trim().toLowerCase());
              }
          }
  
          return roles;
      }