private void generateTranslatedFile(URI originalFile,
Map<String, TextFlowTarget> translations,
net.sf.okapi.common.LocaleId localeId, IFilterWriter writer,
Optional<String> params) {
RawDocument rawDoc =
new RawDocument(originalFile, "UTF-8",
net.sf.okapi.common.LocaleId.fromString("en"));
updateParams(params);
try {
filter.open(rawDoc);
String subDocName = "";