@Override
    public Optional<ResourceSet> getById(final long id) {
        return Optional.ofNullable(repository.get(id));
    }
This is {@link DefaultResourceSetRepository}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/ticket/resource/repository/impl/DefaultResourceSetRepository.java