private void loadChild(BeansetModuleDefinition definition) {
parent = new ClassPathXmlApplicationContext("parentTestContext.xml");
BeansetApplicationModuleLoader moduleLoader = new BeansetApplicationModuleLoader();
ClassLoader classLoader = ClassUtils.getDefaultClassLoader();
child = moduleLoader.newApplicationContext(null, parent, definition, classLoader);
XmlBeanDefinitionReader xmlReader = moduleLoader.newBeanDefinitionReader("id", child, definition);
xmlReader.setBeanClassLoader(classLoader);
xmlReader.loadBeanDefinitions(moduleLoader.getSpringConfigResources("id", definition, classLoader));
child.refresh();
}