private Integer count;
public ThreadedReportEngine createEngine() {
ThreadedReportEngine engine = new ThreadedReportEngine();
engine.setFileDivider(new DefaultFileDivider());
engine.setReportEngineFactory(new DefaultReportEngineFactory());
if (count != null) {
engine.setCount(count);
}