No, filePart.sendEnd(output) is not needed at this line. filePart.sendEnd(output) will be called at initializeFileEnd() --> generateFileEnd().