MessageFormat format = (MessageFormat) formats.get(extKey); if (format == null) { format = new MessageFormat(fixQuotes(grResBundle.getString(extKey)), grLocale); formats.put(extKey, format); } msg = format.format(params);
msg = grResBundle.getString(extKey);
	public static String getString(String className, String key, Object[] params) {		String msg;		String extKey = className + "." + key;		try {			MessageFormat format = (MessageFormat) formats.get(extKey);			if (format == null) {				format = new MessageFormat(fixQuotes(grResBundle.getString(extKey)), grLocale);				formats.put(extKey, format);			}			msg = format.format(params);			if (devResProperties != null && devResProperties.getProperty(extKey) == null) {				if (msg.startsWith("<html>")) {					msg = "<html>***" + msg.substring(6);				} else {					msg = "***" + msg;				}			}		} catch (NullPointerException e) {			Log.log(Log.LEVEL_ERROR, MODULE, "Key null error");			Log.logException(Log.LEVEL_ERROR, MODULE, e);			msg = "[NULLKEY]";		} catch (MissingResourceException e) {			Log.log(Log.LEVEL_INFO, MODULE, "Key [" + extKey + "] not defined");			Log.logException(Log.LEVEL_INFO, MODULE, e);			msg = "[" + extKey + "]";		}		return msg;	}