public AgentImage removeAgentImage(AID id) { AgentImage img = (AgentImage) agentImages.remove(id); // If there are messages that were waiting to be delivered to the // real agent on the FrontEnd, notify failure to sender removePendingMessages(MessageTemplate.MatchReceiver(new AID[] {id}), true); return img; }