*/
public class AgentManagementProxy extends SliceProxy implements AgentManagementSlice {
public void createAgent(AID agentID, String className, Object arguments[], JADEPrincipal owner, Credentials initialCredentials, boolean startIt, Command sourceCmd) throws IMTPException, NotFoundException, NameClashException, JADESecurityException {
try {
GenericCommand cmd = new GenericCommand(H_CREATEAGENT, AgentManagementSlice.NAME, null);
cmd.addParam(agentID);
cmd.addParam(className);
cmd.addParam(arguments);
cmd.addParam(owner);
cmd.addParam(initialCredentials);
cmd.addParam(new Boolean(startIt));
cmd.setPrincipal(sourceCmd.getPrincipal());
cmd.setCredentials(sourceCmd.getCredentials());
Node n = getNode();
Object result = n.accept(cmd);
if((result != null) && (result instanceof Throwable)) {
if(result instanceof IMTPException) {