code: public String lookup(String key) {
          try {
              // Replace "." with "_" in the key.
              return key == null ? null : messages.getString(key.replace(".", "_"));
          } catch (MissingResourceException e) {
              return null;
          }
      }
docs: {@inheritDoc}