{
@SuppressWarnings("deprecation")
public Object initializeProxy(Kernel kernel, String bean, boolean exposeClass, Set<String> interfaces) throws Throwable
{
KernelControllerContext context = getKernelControllerContext(kernel, bean);
BeanMetaData bmd = context.getBeanMetaData();
KernelConfigurator configurator = kernel.getConfigurator();
ClassLoader cl = Configurator.getClassLoader(bmd);
Class<?> beanClass = getBeanClass(context, configurator, cl);
ProxyFactory factory = new ProxyFactory();