UpdateFilter filter = new UpdateFilter( securitySystem, localQuery );
UpdateFilter filter = new UpdateFilter( );
    private <T> T doAction( T graph, UpdateAction<T> action )    {    	T retVal;        UpdateFilter filter = new UpdateFilter( securitySystem, localQuery );        Event currentEvent = securitySystem.getCurrentEvent();        try         {        	beforeUpdate( graph, filter );        	retVal = action.run( graph, filter );        	afterUpdate( currentEvent, filter );        } finally {            // Return the previous event.            securitySystem.setCurrentEvent( currentEvent );        }        return retVal;    }