public static IMappedObject GetObject(this IMetaDataStorage storage, IFileSystemInfo info) {
IMappedObject mappedObject = null;
try {
Guid? guid = info.Uuid;
if (guid != null) {
mappedObject = storage.GetObjectByGuid((Guid)guid);
}
} catch (Exception) {
}
if (mappedObject == null) {
mappedObject = storage.GetObjectByLocalPath(info);
}
return mappedObject;
}
}