@Override public void handleEvent(NicNotification event) { if (SecurityRuleAdded.class.isInstance(event)) { //Translate Security rules into intents SecurityRuleAdded securityRuleAdded = (SecurityRuleAdded) event; securityRule = securityRuleAdded.getSecurityRule(); Intent intent = createIntent(); ruleToIntentMap.put(securityRule.getSecurityRuleID(), intent.getId()); addIntentToMDSAL(intent, FlowAction.ADD_FLOW); } else if (SecurityRuleDeleted.class.isInstance(event)) { SecurityRuleDeleted securityRuleDeleted = (SecurityRuleDeleted) event; securityRule = (NeutronSecurityRule) securityRuleDeleted.getSecurityRule(); Uuid uuid = ruleToIntentMap.get(securityRule.getSecurityRuleID()); removeIntent(uuid); } else if(SecurityRuleUpdated.class.isInstance(event)) { //TODO: } }