{
KernelController controller = (KernelController)context.getController();
Kernel kernel = controller.getKernel();
KernelMetaDataRepository repository = kernel.getMetaDataRepository();
MetaData md = repository.getMetaData(context);
KernelConfig config = kernel.getConfig();
DependencyBuilder dependencyBuilder = config.getDependencyBuilder();
// add custom dependencies (e.g. AOP layer).
List<DependencyBuilderListItem> dependencies = dependencyBuilder.getDependencies(info, md);
if (log.isTraceEnabled())
log.trace("Extra dependencies for " + context.getName() + " " + dependencies);
if (dependencies != null && dependencies.isEmpty() == false)