protected ReportProcessor getProcessorForContentType(final String mimeType)
throws ReportExecutionException
{
if (PentahoReportEngineMetaData.OPENDOCUMENT_SPREADSHEET.equals(mimeType))
{
return new SpreadsheetRawReportProcessor(inputRepository, outputRepository, outputName, imageService);
}
if (PentahoReportEngineMetaData.OPENDOCUMENT_TEXT.equals(mimeType))
{
return new TextRawReportProcessor(inputRepository, outputRepository, outputName, imageService);
}