* @param date The date to marshal. Can not be {@code null}.
* @param allowTime {@code true} for allowing the usage of {@code "DateTime"} field if
* applicable, or {@code false} for using the {@code "Date"} field in every cases.
*/
GO_DateTime(final XmlAdapter<GO_DateTime,?> source, final Date date, final boolean allowTime) {
final Context context = Context.current();
try {
final XMLGregorianCalendar gc = XmlUtilities.toXML(context, date);
if (XmlUtilities.trimTime(gc, !allowTime)) {
this.date = gc;
} else {