Fixed a cookie id handling issue that was not written it into the last switch. 
When only one switch topology, it affected to flow removed event handling and could not handle flow removed event properly.

Change-Id: I729958333a42fe690083bdc9bdaf44b42ef2aba6
diff --git a/src/main/java/net/onrc/onos/core/intent/runtime/PlanCalcRuntime.java b/src/main/java/net/onrc/onos/core/intent/runtime/PlanCalcRuntime.java
index bbd2555..b7497fa 100644
--- a/src/main/java/net/onrc/onos/core/intent/runtime/PlanCalcRuntime.java
+++ b/src/main/java/net/onrc/onos/core/intent/runtime/PlanCalcRuntime.java
@@ -118,6 +118,10 @@
                 long sw = lastDstSw;
                 dstPort = lastDstPort;
                 FlowEntry fe = new FlowEntry(sw, srcPort, dstPort, srcMac, dstMac, i.operator);
+                if (cookieId != null) {
+                    log.trace("cookieId is set: {}", cookieId);
+                    fe.setFlowEntryId(cookieId);
+                }
                 fe.setIdleTimeout(idleTimeout);
                 fe.setHardTimeout(hardTimeout);
                 entries.add(fe);