/// <summary>
        /// Get the XML for a version of an item
        /// </summary>
        /// <param name="item"></param>
        /// <param name="versionQuery"></param>
        /// <returns></returns>
        private string GetXml(ContentItem item, string versionQuery)
        {
            int index;

            int.TryParse(versionQuery, out index);
            var ver = _versionRepository.GetVersion(item, index);

            return(ver != null ? ver.VersionDataXml : _versionRepository.Serialize(item));
        }