final String[] legendColumns = {NAME_COLUMN, ICON_COLUMN, LEVEL_COLUMN};
final LegendAttributeValue legendAttributes = values.legend;
fillLegend(values.clientHttpRequestFactory, legendAttributes, legendList, 0, context);
final Object[][] legend = new Object[legendList.size()][];
final JRTableModelDataSource dataSource = new JRTableModelDataSource(new TableDataSource(legendColumns,
legendList.toArray(legend)));
String compiledTemplatePath = compileTemplate(values.template.getConfiguration());
return new Output(dataSource, legendList.size(), compiledTemplatePath);