Thread.currentThread().setContextClassLoader(newTCCL);
try {
if(isConfigurable) {
initializeResourceConfigurations();
}
return new StandaloneExecutionContext(targetProfile, context, visitorConfigMap);
} finally {
Thread.currentThread().setContextClassLoader(originalTCCL);
}
} else {
if(isConfigurable) {
initializeResourceConfigurations();
}
return new StandaloneExecutionContext(targetProfile, context, visitorConfigMap);
}
}