return applicationContext;
}
ImpalaOsgiApplicationContext newApplicationContext(
ApplicationContext parent, final ModuleDefinition moduleDefinition) {
final ImpalaOsgiApplicationContext applicationContext = new ImpalaOsgiApplicationContext(parent) {
@Override
protected void registerBeanPostProcessors(ConfigurableListableBeanFactory beanFactory) {
//need to add these here because don't get the chance after startRefresh() has been called
beanFactory.addBeanPostProcessor(new ServiceRegistryPostProcessor(serviceRegistry));