Modification to support java.util.date from XMLGregorianCalendar