HTextFlowTarget hTextFlowTarget = hTextFlow.getTargets().get(hLocale.getId());
Map<Integer,HTextFlowTargetHistory> history = Maps.newHashMap();
TransHistoryItem latest = null;
SimpleDateFormat dateFormat = new SimpleDateFormat();
if (hTextFlowTarget != null)
<BUG>{
latest = new TransHistoryItem(hTextFlowTarget.getVersionNum().toString(), hTextFlowTarget.getContents(),
hTextFlowTarget.getState(), hTextFlowTarget.getLastModifiedBy().getName(),
dateFormat.format(hTextFlowTarget.getLastChanged()));</BUG>
history = hTextFlowTarget.getHistory();

HTextFlowTarget hTextFlowTarget = hTextFlow.getTargets().get(hLocale.getId());
Map<Integer,HTextFlowTargetHistory> history = Maps.newHashMap();
TransHistoryItem latest = null;
SimpleDateFormat dateFormat = new SimpleDateFormat();
if (hTextFlowTarget != null)
{
String lastModifiedBy = "unknown";
String lastModifiedDate = "unknown";
if (hTextFlowTarget.getLastModifiedBy() != null)
{
lastModifiedBy = hTextFlowTarget.getLastModifiedBy().getName();
lastModifiedDate = dateFormat.format(hTextFlowTarget.getLastChanged());
