private AuthenticationConfig DeserializeAuthenticationConfig(XmlNode root) { var section = root.SelectSingleNode("authentication"); if (section == null) { return(AuthenticationConfig.Default); } var config = new AuthenticationConfig(); config.LoadFrom(section); return(config); }