} else if (clazz.equals(Date.class)) {
try {
JSON json = method.getAnnotation(JSON.class);
DateFormat formatter = new SimpleDateFormat(
(json != null) && (json.format().length() > 0) ?
json.format() : this.dateFormat);
return formatter.parse((String) value);
} catch (ParseException e) {
log.error(e.getMessage(), e);
throw new JSONException("Unable to parse date from: " + value);