public static GenericContent GetSystemContext(Node child)
{
SystemFolder ancestor = null;
while ((child != null) && ((ancestor = child as SystemFolder) == null))
child = child.Parent;
return (ancestor != null) ? ancestor.Parent as GenericContent : null;
}
}