.keySet().iterator();
while (it.hasNext()) {
String variableName = it.next();
String valueExpression = csvMappingDefinition
.getExtendedContext().get(variableName);
Expression preProcessing = ExpressionFactory
.createExpression(valueExpression);
preProcessing.addPreResolver(new PoundDefineJexlResolver());
jexlContext.getVars().put(variableName,
preProcessing.evaluate(jexlContext));
}
}
for (int i = 0; i < lastCsvIndex; i++) {
if (fieldMappingList.get(currentFieldMappingIndex).getColumnIndex() != i) {
csvFieldList.add("");
} else {
String expressionString = fieldMappingList.get(
currentFieldMappingIndex).getObjectToCsvExpression();
Expression expression = ExpressionFactory
.createExpression(expressionString);
csvFieldList.add(fieldMappingList.get(currentFieldMappingIndex)
.getCsvFieldValueFromObject(
expression.evaluate(jexlContext)));
currentFieldMappingIndex++;
if (currentFieldMappingIndex < fieldMappingList.size()) {
while (fieldMappingList.get(currentFieldMappingIndex)
.getColumnIndex() == i) {