// Behaviour dealing with subscriptions
mt1 = MessageTemplate.and(
MessageTemplate.MatchOntology(FIPAManagementOntology.getInstance().getName()),
MessageTemplate.or(MessageTemplate.MatchPerformative(ACLMessage.SUBSCRIBE), MessageTemplate.MatchPerformative(ACLMessage.CANCEL)));
dfSubscriptionResponder = new SubscriptionResponder(this, mt1, subManager) {
// If the CANCEL message has a meaningful content, use it.
// Otherwise deregister the Subscription with the same convID (default)
protected ACLMessage handleCancel(ACLMessage cancel) throws FailureException {
try {
Action act = (Action) myAgent.getContentManager().extractContent(cancel);