ctx.refresh();
return ctx;
}
private static void initUimaApplicationContext(final ApplicationContext aApplicationContext) {
new UIMAFramework_impl() {
{
CompositeResourceFactory_impl factory = (CompositeResourceFactory_impl) getResourceFactory();
factory.registerFactory(CasConsumerDescription.class,
aApplicationContext.getBean(CasConsumerFactory_impl.class));
factory.registerFactory(CasInitializerDescription.class,