// The BaseContext ctor
contextBuilder.addConstructorParameter(BeanContainer.class.getName(), container);
// BaseContext properties
// BaseContext.instance
String beanName = nameBuilder.buildName(baseName, "BeanInstance", compID);
ValueMetaData beanInstance = contextBuilder.createInject(beanName);
contextBuilder.addPropertyMetaData("instance", beanInstance);
// Call the visitor to augment the metadata
if(visitor != null)
visitor.visit(contextBuilder, baseName, "ContextFactory", compID);
BeanMetaData beanContext = contextBuilder.getBeanMetaData();