try {
isOperationIsValidForTheCurrentTenant(iid);
} catch (IllegalAccessException ex) {
String errMsg = "You are trying to carry out unauthorized operation!";
log.error(errMsg);
throw new InstanceManagementException(errMsg, ex);
}
/*
We need debugger support in order to resume (since we have to force
a reduction. If one is not available the getDebugger() method should
throw a ProcessingException
*/
DebuggerSupport debugSupport = getDebugger(iid);
if (debugSupport == null) {
log.error("Cannot resume the instance " + iid + ", Debugger support not available");
throw new InstanceManagementException("Cannot resume the instance " + iid +
", Debugger " + "support not available");
}
debugSupport.resume(iid);
}