final String dateValue = DataTypeUtil.dateToXmlFormat( date, DataTypeUtil.GMT_TIME_ZONE );
attributes.put( XMLConstants.Office.DATE_VALUE, dateValue );
}
else if (constantValue instanceof Duration) {
attributes.put( XMLConstants.Office.VALUE_TYPE, ValueTypes.TIME );
final Duration duration = (Duration) constantValue;
final long milliseconds = duration.getMilliseconds();
final String dateValue = DataTypeUtil.durationToXmlFormat( milliseconds );
attributes.put( XMLConstants.Office.TIME_VALUE, dateValue );
}
else if (constantValue instanceof Number) {
attributes.put( XMLConstants.Office.VALUE_TYPE, ValueTypes.FLOAT );