return create(null, null);
}
protected BeanContext<?> create(Class[] initTypes, Object[] initValues)
{
BeanContext ctx;
ctx = createBeanContext();
container.pushContext(ctx);
try
{
container.injectBeanContext(ctx);
ctx.initialiseInterceptorInstances();
}
finally
{
container.popContext();
}
container.invokePostConstruct(ctx, initValues);
//TODO This needs to be reimplemented as replacement for create() on home interface
container.invokeInit(ctx.getInstance(), initTypes, initValues);
++createCount;
return ctx;
}