Improve performance by calling "reportType.getType().trim()" only once to guess which report has to generate.