{
JRField field = fields[i];
String fieldMapping = getFieldMapping(field);
MappingLexer lexer = new MappingLexer(new StringReader(fieldMapping));
MappingParser parser = new MappingParser(lexer);
parser.setMappingMetadata(this);
Mapping mapping;
try
{
mapping = parser.mapping();
}
catch (ANTLRException e)
{
log.error("Error parsing field mapping", e);
throw new JRRuntimeException(e);