function getIndexById(tree, indexID) {
var stark = [];
stark = stark.concat(tree);
while (stark.length > 0) {
var temp = stark.shift();
if (temp.nodes) {
stark = stark.concat(temp.nodes);
}
if (temp.indexID=== indexID) {
return temp;
}
}
return false;
}