@Override
public RedcornContainer createChild(String name) {
// BeanDefinition containerDef = new DefaultBeanDefinition(ConstructorInjectionIocContainer.class, name);
BeanDefinition containerDef = this.register(name, ConstructorInjectionRedcornContainer.class);
containerDef.instantiate();
RedcornContainer child = (RedcornContainer) containerDef.getPayload();
for(BeanDefinition bean: this.context.values()) {
child.addDefinition(bean);
}
containerDef.markResolved();