/// <summary>
        /// Logs the cleanse operation.
        /// </summary>
        /// <param name="dataType">Type of the data.</param>
        /// <exception cref="System.ArgumentNullException">dataType</exception>
        protected internal virtual void LogCleanseOperation(CmsDataType dataType)
        {
            if (dataType == null)
                throw new ArgumentNullException("dataType");

            try
            {
                LogHelper.Info<DataTypesService>(string.Format("Successfully cleansed data type {0} - (id: {1})",
                                                   dataType.PropertyEditorAlias, dataType.NodeId));
            }
            catch (Exception ex)
            {
                LogHelper.Error<DataTypesService>("Error logging cleanse operation", ex);
                throw;
            }
        }
        /// <summary>
        /// Cleans up umbraco node table.
        /// </summary>
        /// <param name="dataType">Type of the data.</param>
        /// <exception cref="System.ArgumentNullException">dataType</exception>
        protected internal virtual void CleanUpUmbracoNodeTable(CmsDataType dataType)
        {
            try
            {
                if (dataType == null)
                    throw new ArgumentNullException("dataType");

                _db.Delete<UmbracoNode>("WHERE Id = " + dataType.NodeId);

            }
            catch (Exception ex)
            {
                LogHelper.Error<DataTypesService>("Error cleaning Up data types", ex);
                throw;
            }
        }