Fix ClassCastException

Change-Id: I1c9e6a37c6871bd8186d5ab19a87268d9250aacd
diff --git a/drivers/default/src/main/java/org/onosproject/driver/pipeline/SpringOpenTTP.java b/drivers/default/src/main/java/org/onosproject/driver/pipeline/SpringOpenTTP.java
index 6dab296..049e0c5 100644
--- a/drivers/default/src/main/java/org/onosproject/driver/pipeline/SpringOpenTTP.java
+++ b/drivers/default/src/main/java/org/onosproject/driver/pipeline/SpringOpenTTP.java
@@ -1093,7 +1093,7 @@
      * case, we refer to this as a dummy group.
      *
      */
-    private class SpringOpenGroup implements NextGroup {
+    protected class SpringOpenGroup implements NextGroup {
         private final boolean dummy;
         private final GroupKey key;
         private final TrafficTreatment treatment;
diff --git a/drivers/default/src/main/java/org/onosproject/driver/pipeline/SpringOpenTTPDell.java b/drivers/default/src/main/java/org/onosproject/driver/pipeline/SpringOpenTTPDell.java
index 786c48b..e1249a9 100644
--- a/drivers/default/src/main/java/org/onosproject/driver/pipeline/SpringOpenTTPDell.java
+++ b/drivers/default/src/main/java/org/onosproject/driver/pipeline/SpringOpenTTPDell.java
@@ -42,7 +42,6 @@
 import org.onosproject.net.flowobjective.ForwardingObjective;
 import org.onosproject.net.flowobjective.ObjectiveError;
 import org.onosproject.net.group.Group;
-import org.onosproject.net.group.GroupKey;
 
 /**
  * Spring-open driver implementation for Dell hardware switches.
@@ -137,9 +136,8 @@
             NextGroup next = flowObjectiveStore.getNextGroup(fwd.nextId());
 
             if (next != null) {
-                GroupKey key = appKryo.deserialize(next.data());
-
-                Group group = groupService.getGroup(deviceId, key);
+                SpringOpenGroup soGroup = appKryo.deserialize(next.data());
+                Group group = groupService.getGroup(deviceId, soGroup.key());
 
                 if (group == null) {
                     log.warn("The group left!");