docs: public static DateTimeFormatter toDateTimeFormatter(String formatName, String timeFormat) {
          DateTimeFormatter formatter = null;
      	try{
      		formatter = DateTimeFormat.forPattern(timeFormat);
      	}catch(IllegalArgumentException e){
      		//JODA's error message doesn't tell you which value sucked, so we create a better
      		// error message here.
      		IllegalArgumentException iae = new IllegalArgumentException(
      			String.format("Invalid time format for the property %s: '%s'",
      				formatName,
      				timeFormat),
      			e.getCause());
      		iae.setStackTrace(e.getStackTrace());
  
      		throw iae;
      	}
          return formatter;
      }