code: public String importMessage(String key, Locale locale) {
  
          key = key.trim();
          String[] tokens = key.split("#");
          if (tokens.length != 2) {
              return null;
          }
          String className = tokens[0];
          String messageName = tokens[1];
          try {
              Method messagesGet = Class.forName(className).getMethod("get");
              I_CmsMessageBundle bundle = (I_CmsMessageBundle)(messagesGet.invoke(null));
              return bundle.getBundle(locale).key(messageName);
          } catch (Exception e) {
              LOG.error(e.getLocalizedMessage(), e);
              return null;
          }
      }
docs: Imports a message from another bundle.<p>
  
  @param key a key of the form classname#MESSAGE_FIELD_NAME
  @param locale the locale for which to import the message
  
  @return the imported message string