classLoaderName = factory.getName() + ":" + factory.getVersion();
ValueMetaData classLoader = builder.createInject(classLoaderName);
builder.setClassLoader(classLoader);
BeanMetaData clientContainerMD = builder.getBeanMetaData();
AbstractKernelDeployment deployment = new AbstractKernelDeployment();
deployment.setName(factory.getName() + ":" + factory.getVersion());
if(clientContainerMD instanceof BeanMetaDataFactory)
{
BeanMetaDataFactory bmdf = (BeanMetaDataFactory) clientContainerMD;
beanFactories.add(bmdf);
}
else
{
// Have to use the deprecated beans
ArrayList<BeanMetaData> beans = new ArrayList<BeanMetaData>();
beans.add(clientContainerMD);
deployment.setBeans(beans);
}
deployment.setBeanFactories(beanFactories);
deploy(deployment);
validate();
ClassLoader ccLoader = getBean(classLoaderName, ControllerState.INSTALLED, ClassLoader.class);
if(ccLoader == null )