+ /**\r
+ * Checks wether the object is {@link StructureAware} and forward path and\r
+ * registry. null safe for both arguments.\r
+ */\r
+ @SuppressWarnings(value = { "unchecked" })\r
+ protected void forwardPath(Object obj, String childName) {\r
+ if (obj == null)\r
+ return;\r
+\r
+ if (obj instanceof StructureAware && basePath != null) {\r
+ TreeSPath path;\r
+ if (childName != null)\r
+ path = basePath.createChild(childName);\r
+ else\r
+ path = basePath;\r
+\r
+ ((StructureAware<TreeSPath>) obj).notifyCurrentPath(registry, path);\r
+ }\r
+ }\r
+\r