docs: public static RoleDescriptorResolver getRoleDescriptorResolver(final MetadataResolver metadata,
                                                                     final boolean requireValidMetadata) throws Exception {
          val roleDescriptorResolver = new PredicateRoleDescriptorResolver(metadata);
          roleDescriptorResolver.setSatisfyAnyPredicates(true);
          roleDescriptorResolver.setUseDefaultPredicateRegistry(true);
          roleDescriptorResolver.setRequireValidMetadata(requireValidMetadata);
          roleDescriptorResolver.initialize();
          return roleDescriptorResolver;
      }