protected Object finishResult(final Object res,
final ResourceManager manager,
final ResourceData data,
final ResourceKey context) throws ResourceCreationException, ResourceLoadingException
{
final CrosstabElement report = (CrosstabElement)res;
if (report == null)
{
throw new ResourceCreationException("Report has not been parsed.");
}
// subreports use the content-base of their master-report for now. This is safe for the old platform reports
// and for bundle-reports.
report.setDefinitionSource(data.getKey());
return report;
}