class TimestampToStringXmlAdapter extends XmlAdapter<String, Timestamp> {

    @Override
    public Timestamp unmarshal(String v) throws Exception {
        return new Timestamp(DatatypeConverter.parseDateTime(v).getTimeInMillis());
    }

}