code: public static String getMessage(String key, Locale locale) {
  
          ResourceBundle bundle = null;
          try {
              bundle = CmsResourceBundleLoader.getBundle("org.opencms.inactiveusers.custom", locale);
              return bundle.getString(key);
          } catch (MissingResourceException e) {
              LOG.info("Customization bundle not found: org.opencms.inactiveusers.custom", e);
              bundle = CmsResourceBundleLoader.getBundle("org.opencms.ui.messages", locale);
              return bundle.getString(key);
          }
      }
docs: Gets the message for the given key and locale.<p>
  
  @param key the key
  @param locale the locale
  @return the localized text