}
// Make sure the parent can handle exposed beans - if not, introduce a supporting BeanFactory in the hierarchy
if ( !( beanFactory instanceof AcrossListableBeanFactory ) ) {
AbstractApplicationContext parentApplicationContext = applicationContextFactory.createApplicationContext();
parentApplicationContext.refresh();
parentApplicationContext.start();
ConfigurableListableBeanFactory parentBeanFactory = parentApplicationContext.getBeanFactory();
parentBeanFactory.setParentBeanFactory( currentBeanFactory.getParentBeanFactory() );