return tu;
}
public TransUnit buildTargetTransUnit(HTextFlow hTf, HTextFlowTarget hTft,
LocaleId localeId) {
TransUnit tu = new TransUnit();
if (hTft != null) {
TextFlowTarget target = new TextFlowTarget(hTf.getResId());
resourceUtils.transferToTextFlowTarget(hTft, target,
Optional.of("Editor"));
tu.put(hTft.getLocaleId().toString(), target);
} else {
tu.put(localeId.toString(),
new TextFlowTarget(hTf.getResId()));
}
return tu;
}