public ClassLoader getClassLoader(Resource[] reses) throws IOException{
return getResourceClassLoader().getCustomResourceClassLoader(reses);
}
private ResourceClassLoader getResourceClassLoader() throws IOException {
JavaSettingsImpl js = (JavaSettingsImpl) applicationContext.getJavaSettings();
if(js!=null) {
return config.getResourceClassLoader().getCustomResourceClassLoader(js.getResourcesTranslated());
}
return config.getResourceClassLoader();
}