code: public static XMLGregorianCalendar timeStamp(Date date) {
  		GregorianCalendar gc = new GregorianCalendar();
  		gc.setTime(date);
  		return xmlDatatypeFactory.newXMLGregorianCalendar(gc);
  	}
docs: timestamp
  
  Convenience method to setup an XML dateTime (XMLGregorianCalendar) with passed in Date
  @param date
  @return