private void handleRequestStateChange(VerticalCommand cmd) throws IMTPException, JADESecurityException, NotFoundException, ServiceException {
Object[] params = cmd.getParams();
AID agentID = (AID)params[0];
AgentState as = (AgentState)params[1];
int newState = Agent.AP_MIN;
if(as.equals(jade.domain.FIPAAgentManagement.AMSAgentDescription.SUSPENDED)) {
newState = Agent.AP_SUSPENDED;
}
else if(as.equals(jade.domain.FIPAAgentManagement.AMSAgentDescription.WAITING)) {
newState = Agent.AP_WAITING;
}
else if(as.equals(jade.domain.FIPAAgentManagement.AMSAgentDescription.ACTIVE)) {
newState = Agent.AP_ACTIVE;
}
MainContainer impl = myContainer.getMain();
if(impl != null) {