int sentenceCounter = 0;
int nIteration = 1;
flowChartInstance.setEngineRegistry("iterations", nIteration);
System.gc();
while (signal != ChartItem.TERMINATE) {
signal = flowChartInstance.process();
if (signal == ChartItem.CONTINUE) {
sentenceCounter++;
} else if (signal == ChartItem.NEWITERATION) {
SystemLogger.logger().info("\n=== END ITERATION "+nIteration+" ===\n");
nIteration++;