} catch (IOException exception) {
record.setLevel  (Level.WARNING);
record.setMessage(exception.getMessage());              // For administrator, use system locale.
record.setThrown (exception);
Logging.log(IndexedResourceBundle.class, methodName, record);
<BUG>final MissingResourceException error = new MissingResourceException(

Exceptions.getLocalizedMessage(exception, locale),   // For users, use requested locale.
baseName, key);
error.initCause(exception);
throw error;</BUG>
}

} catch (IOException exception) {
record.setLevel  (Level.WARNING);
record.setMessage(exception.getMessage());              // For administrator, use system locale.
record.setThrown (exception);
Logging.log(IndexedResourceBundle.class, methodName, record);
throw (MissingResourceException) new MissingResourceException(
Exceptions.getLocalizedMessage(exception, locale),   // For users, use requested locale.
baseName, key).initCause(exception);
}
