ONOS-5318 Proprietary Config Store

Change-Id: Ic787d73d9d541a93f5e957a3369dbab4b5fa9a6c
diff --git a/core/api/src/main/java/org/onosproject/store/service/DocumentPath.java b/core/api/src/main/java/org/onosproject/store/service/DocumentPath.java
index 46b8415..ada10b8 100644
--- a/core/api/src/main/java/org/onosproject/store/service/DocumentPath.java
+++ b/core/api/src/main/java/org/onosproject/store/service/DocumentPath.java
@@ -86,6 +86,17 @@
     }
 
     /**
+     * Returns the relative  path to the given node.
+     *
+     * @return relative  path to the given node.
+     */
+    public DocumentPath childPath() {
+        if (pathElements.size() <= 1) {
+            return null;
+        }
+        return new DocumentPath(this.pathElements.subList(pathElements.size() - 1, pathElements.size()));
+    }
+    /**
      * Returns a path for the parent of this node.
      *
      * @return parent node path. If this path is for the root, returns {@code null}.
@@ -183,7 +194,6 @@
                 return this.pathElements.get(i).compareTo(that.pathElements.get(i));
             }
         }
-
         if (this.pathElements.size() > that.pathElements.size()) {
             return 1;
         } else if (that.pathElements.size() > this.pathElements.size()) {