@Override
    public void destroy() {
        FunctionUtils.doIfNotNull(resourceWatcherService, WatcherService::close);
    }
This is {@link OidcDefaultJsonWebKeystoreGeneratorService}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/jwks/generator/OidcDefaultJsonWebKeystoreGeneratorService.java