public void Initialize(IConfigSource config, IRegistryCore registry) { IConfig hgConfig = config.Configs["HyperGrid"]; if (hgConfig == null || !hgConfig.GetBoolean ("Enabled", false)) return; m_registry = registry; registry.RegisterModuleInterface<IUserAgentService> (this); }