private void amsSubscribe(final AID owner) {
myAMSSubscriber = new AMSSubscriber() {
protected void installHandlers(Map handlersTable) {
handlersTable.put(IntrospectionVocabulary.DEADAGENT, new EventHandler() {
public void handle(Event ev) {
DeadAgent da = (DeadAgent) ev;
if (da.getAgent().equals(owner)) {
// My Owner is dead --> suicide
doDelete();
}
}
});