AgentInstance agentInstance = (AgentInstance)qashProperties.removeActiveAgent(new Integer(agentID.toString())); // remove also returns the object it deleted
if (agentInstance==null)
throw new Exception("Unknown agentID");
try {
agentInstance.DELAGENT();
}
catch (Exception ex) {
printError(DELAGENT,"Error cleaning up agent ("+ex.toString()+") :",currToken);
}
finally {