@GetMapping(value = OAuth20Constants.BASE_OAUTH20_URL + '/' + OAuth20Constants.UMA_RESOURCE_SET_REGISTRATION_URL,
        consumes = MediaType.APPLICATION_JSON_VALUE,
        produces = MediaType.APPLICATION_JSON_VALUE)
    @Operation(
        summary = "Find resource sets",
        description = "Finds all resource sets registered by the client"
    )
    public ResponseEntity findResourceSets(final HttpServletRequest request, final HttpServletResponse response) {
        try {
            val profileResult = getAuthenticatedProfile(request, response, OAuth20Constants.UMA_PROTECTION_SCOPE);
            val resources = getUmaConfigurationContext().getUmaResourceSetRepository()
                .getByClient(OAuth20Utils.getClientIdFromAuthenticatedProfile(profileResult));
            val model = resources.stream().map(ResourceSet::getId).collect(Collectors.toSet());
            return new ResponseEntity(model, HttpStatus.OK);
        } catch (final Exception e) {
            LoggingUtils.error(LOGGER, e);
        }
        return new ResponseEntity("Unable to locate resource-sets.", HttpStatus.BAD_REQUEST);
    }
Find resource sets response entity.

@param request  the request
@param response the response
@return the response entity
support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/web/controllers/resource/UmaFindResourceSetRegistrationEndpointController.java