public static class Parser implements FieldParser {
private static Log log = LogFactory.getLog(Parser.class);
public Field parse(final String name, final String body, final String raw) {
Date date = null;
ParseException parseException = null;
try {
try {
date = new DateTimeParser(new StringReader(body)).parseAll().getDate();
}
catch (TokenMgrError err) {
throw new ParseException(err.getMessage());
}
}
catch (ParseException e) {
if (log.isDebugEnabled()) {
log.debug("Parsing value '" + body + "': "+ e.getMessage());