//When the created weld kernel controller context is installed, call installCreatedBean() which removes
//this bean from the controller
BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(beanMetaDataHolder.getBeanMetaData());
builder.addInstallWithParameters("installCreatedBean", (String)context.getName(), ControllerState.INSTALLED);
WeldKernelControllerContext ctx = new WeldKernelControllerContext(null, beanMetaDataHolder.getBeanMetaData(), null, manager);
try
{
context.getController().install(ctx);
}