throw new WebApplicationException(Response.Status.BAD_REQUEST);
}
Map<String, String> result = null;
try {
result = new NaturalDateParser().parse(string).asMap();
} catch (NaturalDateParser.DateNotParsableException e) {
LOG.debug("Could not parse from natural date: " + string);
throw new WebApplicationException(422);
}