@Override protected Event handleStartDocument (Event event) { if ( params.getSegmentSource() || params.getSegmentTarget() ) { // Possibly force the output segmentation, but only if we do any segmentation if ( params.getForcesegmentedOutput() ) { // Force to show the segments when possible IParameters prm = event.getStartDocument().getFilterParameters(); if ( prm != null ) { prm.setInteger("outputSegmentationType", 3); } } } return event; }