private static Content EnsureContainer(string path, string containerTypeName)
{
if (Node.Exists(path))
return null;
var name = RepositoryPath.GetFileName(path);
var parentPath = RepositoryPath.GetParentPath(path);
//recursive call to create parent containers
EnsureContainer(parentPath, containerTypeName);
return CreateContent(parentPath, name, containerTypeName);
}