} catch (IllegalAccessException ex) {
String errMsg = "You are trying to carry out unauthorized operation!";
log.error(errMsg);
throw new InstanceManagementException(errMsg, ex);
}
DebuggerSupport debugSupport = getDebugger(iid);
if (debugSupport == null) {
log.error("Cannot terminate the instance " + iid + ", Debugger support not available");
throw new InstanceManagementException("Cannot terminate the instance " + iid +
", Debugger support not available");
}
debugSupport.terminate(iid);
}