}
return manageableVMs;
}
private static void getMonitoredVMs(Map<Integer, LocalVirtualMachine> map) {
MonitoredHost monitoredhost;
Set set;
try {
monitoredhost = MonitoredHost.getMonitoredHost(new HostIdentifier((String) null));
set = monitoredhost.activeVms();
}
catch (URISyntaxException urisyntaxexception) {
throw new InternalError(urisyntaxexception.getMessage());
}
catch (MonitorException monitorexception) {
throw new InternalError(monitorexception.getMessage());
}
Iterator iterator = set.iterator();
while (iterator.hasNext()) {
Object obj = iterator.next();
if (obj instanceof Integer) {
int i = ((Integer) obj).intValue();
String s = obj.toString();
boolean flag = false;
String s1 = null;
try {
MonitoredVm monitoredvm = monitoredhost.getMonitoredVm(new VmIdentifier(s));
s = MonitoredVmUtil.commandLine(monitoredvm);
flag = MonitoredVmUtil.isAttachable(monitoredvm);
s1 = ConnectorAddressLink.importFrom(i);
monitoredvm.detach();
}