localAgents.put(name, a);
AID id = new AID(name, AID.ISLOCALNAME);
//#MIDP_EXCLUDE_BEGIN
// NOTIFY BORN AGENT once the new agent has been created, inserted in the localTable and notified to the Main, but not yet started
notifyListeners(new ContainerEvent(ContainerEvent.BORN_AGENT, id, myId));
//#MIDP_EXCLUDE_END
a.powerUp(id, new Thread(a));
}