}
//TODO: need to merge with StatisticsServiceImpl.getDocStatistics
public ContainerTranslationStatistics getDocStatistics(Long documentId,
LocaleId localeId) {
ContainerTranslationStatistics result =
documentDAO.getStatistics(documentId, localeId);
TranslationStatistics wordStatistics =
result.getStats(localeId.getId(), StatUnit.WORD);
wordStatistics.setRemainingHours(StatisticsUtil
.getRemainingHours(wordStatistics));
TranslationStatistics msgStatistics =
result.getStats(localeId.getId(), StatUnit.MESSAGE);
msgStatistics.setRemainingHours(StatisticsUtil
.getRemainingHours(wordStatistics));
return result;
}