Modified the way the handler manage the output from the TextProcessor. Now it iterates and writes all the returned ProcessTextOutput.