private void decorateExtractedFields(List extractedFields) {
List selectedFields = getEngineInstance().getActiveQuery().getSelectFields(true);
Iterator selectedFieldsIterator = selectedFields.iterator();
Iterator extractedFieldsIterator = extractedFields.iterator();
while( extractedFieldsIterator.hasNext() ) {
Field exctractedField = (Field)extractedFieldsIterator.next();
ISelectField selectedField = (ISelectField)selectedFieldsIterator.next();
exctractedField.setAlias( selectedField.getAlias() );
exctractedField.setVisible( selectedField.isVisible() );
if(selectedField.isDataMartField())
exctractedField.setPattern( ((DataMartSelectField)selectedField).getPattern() );
}
}