if (currentRecord != null) {
fieldIndex = dataStore.getMetaData().getFieldIndex(field.getName());
value = currentRecord.getFieldAt(fieldIndex).getValue();
if(value instanceof DateDecorator) {
DateDecorator dateDecorator = (DateDecorator)value;
value = new Date(dateDecorator.getTime());
}
}
logger.debug(field.getName() + ": " + value);
return value;
}