HTML writer writes to OutputStream
optimize imports / reformat code