private void stopDevice(NetconfDeviceInfo deviceInfo) { netconfDeviceMap.get(deviceInfo.getDeviceId()).disconnect(); netconfDeviceMap.remove(deviceInfo.getDeviceId()); for (NetconfDeviceListener l : netconfDeviceListeners) { l.deviceRemoved(deviceInfo); } }