code: public static String formatMessage(String msgKey) {
          String msg;
          try {
              msg = JaxbToolsConstants.messages.getString(msgKey);
          } catch (Exception ex) {
              // no FFDC required
              return msgKey;
          }
  
          return msg;
      }
docs: get the localized message provided in the message files in the com.ibm.ws.jaxb.tools.
  
  @param msgKey
  @return