UpdateFilter filter = new UpdateFilter( getHibernateTemplate() );
UpdateFilter filter = new UpdateFilter( securitySystem, localQuery );
    public IObject saveAndReturnObject( IObject graph )    {        UpdateFilter filter = new UpdateFilter( getHibernateTemplate() );        beforeUpdate( graph, filter );        graph = internalSave( graph, filter );        afterUpdate( graph, filter );        return graph;    }