try {
xsDate = new XSDateTime(new java.util.Date(sqlDate.getTime()));
}
catch (XmlStructException e) {
/* This should never happen, but ... */
throw new XMLDispatcherAppException("Cannot convert sql date '"+sqlDate.toString()+"' to xsDateTime (" + e.getMessage() + ")");
}
}
return xsDate;
}