T readData = _accessor.get(path, stat, AccessOption.THROW_EXCEPTION_IFNOTEXIST);
update(path, readData, stat);
// recursively update children nodes if not exists
ZNode znode = _cache.get(path);
List<String> childNames = _accessor.getChildNames(path, 0);
if (childNames != null && childNames.size() > 0)
{
for (String childName : childNames)
{
String childPath = path + "/" + childName;
if (!znode.hasChild(childName))
{
znode.addChild(childName);
updateRecursive(childPath);
}
}
}
}