private static string serializeModule(Module.Module module)
        {
            XmlSerializer serializer = new XmlSerializer(module.GetType());

            using (StringWriter sw = new StringWriter())
            {
                serializer.Serialize(sw, module);
                return(sw.ToString());
            }
        }
        private static string SerializeModule(Module.Module module)
        {
            try
            {
                XmlSerializer serializer = new XmlSerializer(module.GetType());

                using (StringWriter sw = new StringWriter())
                {
                    serializer.Serialize(sw, module);
                    return(sw.ToString());
                }
            }
            catch (Exception exception)
            {
                Log.Log.WriteException(exception);

                return(string.Empty);
            }
        }