T object = editor.getEditorObject();
List<? extends T> elements = event.getElements();
if ( elements.contains( object ) ) {
//Revert, so that the editor can be closed...
editor.getForm().revert();
SpringSupport.INSTANCE.publishEvent( new CloseEditorEvent( editor.getId() ) );
}
}