KernelController controller = (KernelController) context.getController();
Kernel kernel = controller.getKernel();
KernelConfigurator configurator = kernel.getConfigurator();
BeanMetaData metaData = context.getBeanMetaData();
BeanInfo info = configurator.getBeanInfo(metaData);
context.setBeanInfo(info);
// add custom dependencies (e.g. AOP layer).
DependencyInfo depends = context.getDependencyInfo();
List dependencies = info.getDependencies();
if (dependencies != null)
{
Iterator it = dependencies.iterator();
while (it.hasNext())
{