.getTextFlowTarget(
action.getSourceTransUnitId().getId(),
action.getLocale().getId().getLocaleId());
if (hTextFlowTarget == null) {
return new GetTargetForLocaleResult(null);
} else {
String displayName = retrieveDisplayName(hTextFlowTarget.getLocale());
TextFlowTarget textFlowTarget = new TextFlowTarget(
new TextFlowTargetId(hTextFlowTarget.getId()),
action.getLocale(), hTextFlowTarget.getContents().get(0),
displayName);
return new GetTargetForLocaleResult(textFlowTarget);
}
} catch (Exception e) {
log.error("Exception when fetching target: ", e);
return new GetTargetForLocaleResult(null);
}
}