@Override
    public void destroy() {
        if (watcherService != null) {
            watcherService.close();
        }
    }
This is {@link JsonResourceSurrogateAuthenticationService}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-surrogate-core/src/main/java/org/apereo/cas/authentication/surrogate/JsonResourceSurrogateAuthenticationService.java