DateFormat (String format, Locale locale) { try { if (LOG.isTraceEnabled()) LOG.trace("'" + format + "' in " + locale); return new SimpleDateFormat(format.trim(), locale); } catch (IllegalArgumentException e) { throw new IllegalArgumentException("unrecognized format string '" + format + "'"); } }