    public ResourceBundle getBundle() {
        if (this.bundle == null) {
            Locale locale = getLocale();
            String baseName = (String) get(Config.FMT_LOCALIZATION_CONTEXT);
            if (baseName == null) {
                baseName = DEFAULT_BUNDLE_NAME;
            }
            try {
				this.bundle = new SafeResourceBundle(ResourceBundle.getBundle(baseName, locale));
			} catch (MissingResourceException e) {
				logger.warn("couldn't find message bundle, creating an empty one", e);
				this.bundle = new SafeResourceBundle(createEmptyBundle());
			}
        }
        return this.bundle;
    }

    public ResourceBundle getBundle() {
        if (this.bundle == null) {
            Locale locale = getLocale();
            String baseName = (String) get(Config.FMT_LOCALIZATION_CONTEXT);
            if (baseName == null) {
                baseName = DEFAULT_BUNDLE_NAME;
            }
            try {
				this.bundle = new SafeResourceBundle(ResourceBundle.getBundle(baseName, locale));
			} catch (MissingResourceException e) {
				logger.warn("couldn't find message bundle, creating an empty one");
				this.bundle = new SafeResourceBundle(createEmptyBundle());
			}
        }
        return this.bundle;
    }
