public void Initialize(IConfigSource config, IRegistryCore registry)
        {
            IConfig handlerConfig = config.Configs["Handlers"];
            if (handlerConfig.GetString ("FriendsHandler", "") != Name)
                return;

            m_localService = new FriendsService ();
            m_localService.Initialize(config, registry);
            m_remoteService = new FriendsServicesConnector ();
            m_remoteService.Initialize(config, registry);
            registry.RegisterModuleInterface<IFriendsService> (this);
        }
        public void Initialize(IConfigSource config, IRegistryCore registry)
        {
            IConfig handlerConfig = config.Configs["Handlers"];
            if (handlerConfig.GetString ("FriendsHandler", "") != Name)
                return;

            string localHandler = handlerConfig.GetString("LocalFriendsHandler", "FriendsService");
            List<IFriendsService> services = Aurora.Framework.AuroraModuleLoader.PickupModules<IFriendsService>();
            foreach(IFriendsService s in services)
                if(s.GetType().Name == localHandler)
                    m_localService = s;

            if(m_localService == null)
                m_localService = new FriendsService ();
            m_localService.Initialize(config, registry);
            m_remoteService = new FriendsServicesConnector ();
            m_remoteService.Initialize(config, registry);
            registry.RegisterModuleInterface<IFriendsService> (this);
            m_registry = registry;
        }