@Override
    public boolean shouldSaveEvent(final CasEvent event) throws Throwable {
        val args = new Object[]{event, LOGGER};
        return watchableScript.execute("shouldSaveEvent", Boolean.class, args);
    }
This is {@link GroovyCasEventRepositoryFilter}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-events-api/src/main/java/org/apereo/cas/support/events/dao/filter/GroovyCasEventRepositoryFilter.java