/** * Formats the message stored in the resource bundle (using a MessageFormat). * * @param key the resourcebundle key * @param param1 the parameter for the message * @return the formated string */ public static String getString(final String key, final Object... param1) { try { return bundle.formatMessage(key, param1); } catch (MissingResourceException e) { logger.warn("Missing localization: " + key, e); return '!' + key + '!'; } }