*/
// private Object createApplicationContext(SCAParentApplicationContext scaParentContext) {
private AbstractApplicationContext createApplicationContext(SCAParentApplicationContext scaParentContext, URL resource) {
XmlBeanFactory beanFactory = new XmlBeanFactory(new UrlResource(resource));
AbstractApplicationContext appContext = null;
for (String bean : beanFactory.getBeanDefinitionNames()) {
String beanClassName = (beanFactory.getType(bean)).getName();
if (beanClassName.indexOf(".ClassPathXmlApplicationContext") != -1 ||
beanClassName.indexOf(".FileSystemXmlApplicationContext") != -1)
{
BeanDefinition beanDef = beanFactory.getBeanDefinition(bean);
String[] listValues = null;
List<ConstructorArgumentValues.ValueHolder> conArgs =
beanDef.getConstructorArgumentValues().getGenericArgumentValues();
for (ConstructorArgumentValues.ValueHolder conArg : conArgs) {
if (conArg.getValue() instanceof TypedStringValue) {