internal static string GetAttachmentName(Node node, string propertyName)
{
var binaryName = RepositoryPath.GetFileName(System.IO.Path.GetFileName(((BinaryData)node[propertyName]).FileName));
if (string.IsNullOrEmpty(binaryName) || binaryName.StartsWith("."))
binaryName = node.Name + binaryName;
return binaryName;
}