@Override
    public void close() {
        if (watcherService != null) {
            LOGGER.trace("Shutting down watcher service for [{}]", this.resource);
            this.watcherService.close();
        }
    }
Execute.

@param <T>         the type parameter
@param methodName  the method name
@param clazz       the clazz
@param failOnError the fail on error
@param args        the args
@return the t
core/cas-server-core-scripting/src/main/java/org/apereo/cas/util/scripting/WatchableGroovyScriptResource.java