public void SetLayerParentHandle(OutlinerLayer layer, Int32 newParentHandle)
{
removeHandleFromListInDict(layer.Handle, layers_by_parentHandle, layer.ParentHandle);
addHandleToListInDict(layer.Handle, layers_by_parentHandle, newParentHandle);
layer.ParentHandle = newParentHandle;
}