// Ensure we not already are listening to the events
isn.removeListener(dataSourceListener);
// Add listener
isn.addListener(dataSourceListener);
}
if (dataSource instanceof PropertySetChangeNotifier) {
getLogger()
.finest("Attaching PropertySetChangeListener to graph datasource");
PropertySetChangeNotifier pscn = (PropertySetChangeNotifier) dataSource;