findEntityPath = function(obj, entityName, path) {
    path = path || "";
    var fullpath = "";
    if (obj.name === entityName) {
        return path;
    } else if (obj.children && obj.children.length !== 0) {
        obj.children.forEach(child => {
            fullpath = findEntityPath(child, entityName, path + "/" + obj.name + "/" + child.name) || fullpath;
        })
    }
    return fullpath;
}
Helper function to recursively find the path to a child entity
@param {Object} obj 
@param {String} entityName 
@param {String} path