}
    public void onApplicationEvent(ApplicationEvent event) {        if (event instanceof JaasAuthenticationFailedEvent)            failedEvent = (JaasAuthenticationFailedEvent) event;        if (event instanceof JaasAuthenticationSuccessEvent)            successEvent = (JaasAuthenticationSuccessEvent) event;    }