protected override object DoGetInstance(Type serviceType, string key)
        {
            return(CastleWindsorContainerExtensions.Resolve(WindsorContainer, serviceType));

            //if (key == null)
            //    return WindsorContainer.Resolve(serviceType);
            //return WindsorContainer.Resolve(key, serviceType);
        }
 /// <summary>
 ///
 /// </summary>
 /// <param name="serviceType"></param>
 /// <param name="key"></param>
 /// <returns></returns>
 protected override object DoGetInstance(Type serviceType, string key)
 {
     return(CastleWindsorContainerExtensions.Resolve(_windsorContainer, serviceType));
 }