code: public final String get(final String pkey) {
      try {
        // Replace "." with "_" in the key to match what ConstantsImplCreator does.
        return pkey == null ? null : messages.getString(pkey.replace(".", "_"));
      } catch (final MissingResourceException e) {
        return null;
      }
    }
docs: get localized message for key.
  
  @param pkey key of message
  @return localized text for the key