try { msg = getMessageInternal(key, args); } catch (Exception e) { log.warn("Error while getting message with key " + key, e); }
try { msg = getMessageInternal(key, args); } catch (Exception e) { log.warn("Error while getting message with key '" + key + "'", e); }
    public final String getMessage(String key, Object... args) {        if (key == null) {            throw new NullArgumentException("key");        }        String msg = null;        try {            msg = getMessageInternal(key, args);        } catch (Exception e) {            log.warn("Error while getting message with key " + key, e);        }        if (msg == null) {            if (log.isInfoEnabled()) {                log.info("No message found for key '" + key + "'");            }        }        return msg;    }