let's leverage the full flexibility of Config interface in UserAgent class constructor instead of creating a new XmlConfig file statically.