// Notify the main container through its slice
AgentManagementSlice mainSlice = (AgentManagementSlice)getSlice(MAIN_SLICE);
// We propagate the class-name to the main, but we don't want to keep it in the actual agent AID.
AID cloned = (AID) target.clone();
cloned.addUserDefinedSlot(AID.AGENT_CLASSNAME, instance.getClass().getName());
try {
mainSlice.bornAgent(cloned, myContainer.getID(), vCmd);
}
catch(IMTPException imtpe) {
// Try to get a newer slice and repeat...