textFlowDAO.findById(action.getTransUnitId().getId(), false);
HTextFlowTarget hTextFlowTarget =
hTextFlow.getTargets().get(hLocale.getId());
Map<Integer, HTextFlowTargetHistory> history = Maps.newHashMap();
TransHistoryItem latest = null;
if (hTextFlowTarget != null) {
String lastModifiedBy =
nameOrEmptyString(hTextFlowTarget.getLastModifiedBy());
int nPlurals =
resourceUtils.getNumPlurals(hTextFlow.getDocument(),
hLocale);
latest =
new TransHistoryItem(hTextFlowTarget.getVersionNum()
.toString(),
GwtRpcUtil.getTargetContentsWithPadding(hTextFlow,
hTextFlowTarget, nPlurals),
hTextFlowTarget.getState(), lastModifiedBy,
hTextFlowTarget.getLastChanged());