//
log.debug("About to load a bundle for locale " + locale + " and bundle " + resourceBundle);
final ResourceBundle bundle = ResourceBundle.getBundle(resourceBundle, locale, bundleLoader, CONTROL);
if (bundle != null) {
log.debug("Found bundle " + bundle + " for locale " + locale + " and bundle " + resourceBundle);
reader = new PropertyResolverReader(reader) {
@Override
protected String resolve(String name) {
try {
String val = bundle.getString(name);
return escapeJavascriptStringLiteral(val);