/** {@inheritDoc} */ public void detach(MonitoredVm vm) throws MonitorException { RemoteMonitoredVm rmvm = (RemoteMonitoredVm) vm; rmvm.detach(); try { remoteHost.detachVm(rmvm.getRemoteVm()); } catch (RemoteException e) { throw new MonitorException( "Remote Exception detaching from " + vm.getVmIdentifier().toString(), e); } }