}
}
// get resources from server config and merge
if (configServer != null) {
ResourceClassLoader rcl = configServer.getResourceClassLoader();
libs = ResourceUtil.merge(libs, rcl.getResources());
}
// get parent classloader
// ClassLoader parent;
// if(configServer==null) parent=new
// ClassLoaderHelper().getClass().getClassLoader();// this classloader
// holds all loader and core classes
// else parent = configServer.getResourceClassLoader(); // Resource
// classloader from server config
// set classloader
ClassLoader parent = new ClassLoaderHelper().getClass().getClassLoader();// this
// classloader
// holds
// all
// loader
// and
// core
// classes
config.setResourceClassLoader(new ResourceClassLoader(libs, parent));
}