try {
dateValue = parser.getFormatter().parseDate(inner);
} catch (IllegalArgumentException e) {
if (inner.contains(".") || inner.contains("/") || inner.contains("-") || // this MUST be a date
inner.contains("\\") || inner.contains("\"") || inner.trim().isEmpty()) {
throw new ParseException(parser, e.getMessage());
}
}
this.image = image; // tried to parse. but this seems to be a Keyword
}