private void stopDevice(NetconfDeviceInfo deviceInfo) {
   netconfDeviceMap.get(deviceInfo.getDeviceId()).disconnect();
   netconfDeviceMap.remove(deviceInfo.getDeviceId());
   for (NetconfDeviceListener l : netconfDeviceListeners) {
     l.deviceRemoved(deviceInfo);
   }
 }
 private NetconfDevice createDevice(NetconfDeviceInfo deviceInfo) throws NetconfException {
   NetconfDevice netconfDevice = deviceFactory.createNetconfDevice(deviceInfo);
   for (NetconfDeviceListener l : netconfDeviceListeners) {
     l.deviceAdded(deviceInfo);
   }
   netconfDeviceMap.put(deviceInfo.getDeviceId(), netconfDevice);
   return netconfDevice;
 }