}
@Override
public Date createObject(TypedLiteral literal) {
if (!literal.getDataType().equals(dateTimeUri)) {
throw new InvalidLiteralTypeException(Date.class, literal.getDataType());
}
try {
return DATE_FORMAT.parse(literal.getLexicalForm());
} catch (ParseException ex) {
throw new RuntimeException("Exception parsing literal as date", ex);