public System.Xml.Linq.XElement GetProperty(umbraco.cms.businesslogic.property.Property prop) { //get access to media item based on some path. var itm = new Document(int.Parse(prop.Value.ToString())); return new XElement(prop.PropertyType.Alias, itm.ConfigPath()); }