*/
private VirtualMachineSnapshotTree findSnapshotInTree
(VirtualMachineSnapshotTree[] snapTree, VirtualMachineSnapshot vmSnap)
{
for (int i = 0; i < snapTree.length; i ++) {
VirtualMachineSnapshotTree node = snapTree[i];
if (node.getSnapshot().equals(vmSnap.getMOR())) {
return node;
}
VirtualMachineSnapshotTree[] childTree =
node.getChildSnapshotList();
if (childTree != null) {
VirtualMachineSnapshotTree ret =
findSnapshotInTree(childTree, vmSnap);
if (ret != null) {
return ret;
}
}