public static SoaConfigInfo GetConfig(string sectionName)
        {
            SoaConfigInfo section = (SoaConfigInfo)ConfigurationManager.GetSection(sectionName);

            if (section == null)
            {
                throw new ConfigurationErrorsException("Section " + sectionName + " is not found.");
            }
            return(section);
        }
        public static SoaConfigInfo GetConfig()
        {
            SoaConfigInfo section = GetConfig("SoaConfig");

            return(section);
        }