targetSlice = (AgentManagementSlice)getFreshSlice(cid.getName());
targetSlice.createAgent(agentID, className, args, owner, initialCredentials, AgentManagementSlice.CREATE_AND_START, cmd);
}
}
else {
throw new NotFoundException("Container "+cid.getName()+" not found");
}
}
else {
// Do nothing for now, but could also route the command to the main slice, thus enabling e.g. AMS replication
}