if (e.getType() == Type.DEVICE_EVENT) {
Logger.trace("Received DeviceEvent "+e);
Scheduler.execute(new Runnable() {
@Override
public void run() {
DeviceEvent ev = (DeviceEvent) e.getSubject();
if (ev.getType() == DeviceEvent.Type.STATUS_CHANGED
|| ev.getType() == DeviceEvent.Type.INTERFACE_STATUS_CHANGED) {
for (Notifier l : statusListeners) {
try {
l.statusChanged(ev, _this);
} catch (Exception e2) {
Logger.error("Unable to notify StatusListener "+l, e2);