Event currentEvent = securitySystem.getCurrentEvent(); Event mergedEvent = (Event) internalSave( currentEvent, filter ); securitySystem.setCurrentEvent( mergedEvent );
    private void beforeUpdate( Object argument, UpdateFilter filter )    {        if ( argument == null )            throw new IllegalArgumentException(                     "Argument to save cannot be null.");        if ( logger.isDebugEnabled() )            logger.debug( " Saving event before merge. " );                // Save event before we enter.        Event currentEvent = securitySystem.getCurrentEvent();        Event mergedEvent = (Event) internalSave( currentEvent, filter );        securitySystem.setCurrentEvent( mergedEvent );    }