// Tries to load the bundle for the given locale.
private static I18NBundle loadBundle (FileHandle baseFileHandle, String encoding, Locale targetLocale) {
I18NBundle bundle = null;
InputStream stream = null;
try {
FileHandle fileHandle = toFileHandle(baseFileHandle, targetLocale);
if (fileHandle.exists()) {
// Instantiate the bundle
bundle = new I18NBundle();
// Load bundle properties from the stream with the specified encoding
stream = fileHandle.read();
bundle.load(new InputStreamReader(stream, encoding));
}
} catch (Throwable t) {
throw new GdxRuntimeException(t);
} finally {