Date date = ISO8601_FORMAT.parse(value.getString());
decodedObject.setTime(date.getTime());
} catch (ParseException ex) {
Logger.getLogger(DateJSONValueCodec.class.getName()).log(Level.SEVERE, null, ex);
throw new JSONMarshalerException("decode");
} catch (InstantiationException ex) {
Logger.getLogger(DateJSONValueCodec.class.getName()).log(Level.SEVERE, null, ex);
throw new JSONMarshalerException("decode");
} catch (IllegalAccessException ex) {
Logger.getLogger(DateJSONValueCodec.class.getName()).log(Level.SEVERE, null, ex);
throw new JSONMarshalerException("decode");
}
return decodedObject;
} else {
throw new JSONMarshalerException("notdate");
}
}