public void clear() {
super.clear();
resourceProvider.markAsChanged(resource);
}
private static Object convertForWrite(Object value) {
<BUG>if (value instanceof Calendar) {
value = getISO8601Format().format(((Calendar)value).getTime());
}</BUG>
if (value instanceof Date) {
<BUG>value = getISO8601Format().format((Date)value);
}</BUG>
else if (value instanceof InputStream) {

public void clear() {
super.clear();
resourceProvider.markAsChanged(resource);
}
private static Object convertForWrite(Object value) {
if (value instanceof Date) {
Calendar calendar = Calendar.getInstance();
calendar.setTime((Date)value);
value = calendar;
}
else if (value instanceof InputStream) {
