code: public static String getLocalisedText(final Locale locale, final String text) {
  		String message = null;
  		String resourceBundleBaseName = getResourceBundleBaseName();
  
  		if (!Util.empty(resourceBundleBaseName)) {
  			Locale effectiveLocale = locale;
  
  			if (effectiveLocale == null) {
  				effectiveLocale = getEffectiveLocale();
  			}
  
  			try {
  				// TODO: This is slow
  				ResourceBundle bundle = ResourceBundle.getBundle(resourceBundleBaseName, effectiveLocale);
  				message = bundle.getString(text);
  			} catch (MissingResourceException e) {
  				// Fall back to the Configuration mechanism for the default internal messages
  				if (text != null && text.startsWith(ConfigurationProperties.INTERNAL_MESSAGE_PREFIX)) {
  					message = ConfigurationProperties.getInternalMessage(text);
  				}
  
  				if (message == null && !MISSING_RESOURCES.contains(locale)) {
  					LOG.error("Missing resource mapping for locale: " + locale + ", text: " + text);
  					MISSING_RESOURCES.add(locale);
  				}
  			}
  		} else if (text != null && text.startsWith(ConfigurationProperties.INTERNAL_MESSAGE_PREFIX)) {
  			// Fall back to the Configuration mechanism for the default internal messages
  			message = ConfigurationProperties.getInternalMessage(text);
  		}
  
  		return message;
  	}
docs: Attempts to retrieve the localized message for the given text.
  
  @param locale the locale to retrieve the message for, or null for the default locale.
  @param text the text message or id to look up.
  @return the localised text if found, otherwise null.