int totalCount = count * 5;
ArrayList<TransUnit> data =
generateTransUnitSampleData(action.getWorkspaceId()
.getLocaleId(), count, offset);
GetTransUnitListResult result =
new GetTransUnitListResult(documentId, data, 1, offset, offset
/ count);
ArrayList<TransUnitId> idIndexList = new ArrayList<TransUnitId>();
HashMap<TransUnitId, ContentState> transIdStateMap =
new HashMap<TransUnitId, ContentState>();
for (TransUnit tu : data) {
idIndexList.add(tu.getId());
transIdStateMap.put(tu.getId(), tu.getStatus());
}
result.setNavigationIndex(new GetTransUnitsNavigationResult(
idIndexList, transIdStateMap));
callback.onSuccess(result);
Log.info("EXIT DummyGetTransUnitCommand.execute()");
}