handler.addAttachments(title.concat("/"), this.zip);
<BUG>if ( handler.supports(PrinterMode.JSON) ) {
final String name = "json/".concat(title).concat(".json");</BUG>
final ZipEntry entry = new ZipEntry( name );
zip.putNextEntry( entry );
<BUG>handler.print(PrinterMode.JSON, this);
</BUG>
flush();
<BUG>zip.closeEntry();
}</BUG>
}

handler.addAttachments(title.concat("/"), this.zip);
} else {
counter++;
final String name = "json/".concat(title).concat(".json");
final ZipEntry entry = new ZipEntry( name );
zip.putNextEntry( entry );
handler.print(PrinterMode.ZIP_FILE_JSON, this);
flush();
zip.closeEntry();
if ( !handler.supports(PrinterMode.ZIP_FILE_BIN) ) {
handler.addAttachments(title.concat("/"), this.zip);
