HLocale validateLocaleByProjectIteration(@Nonnull LocaleId locale,
@Nonnull String project, @Nonnull String iterationSlug)
throws ZanataServiceException {
List<HLocale> allList =
getSupportedLanguageByProjectIteration(project, iterationSlug);
HLocale hLocale = localeDAO.findByLocaleId(locale);
if (hLocale == null || !hLocale.isActive()) {
throw new ZanataServiceException("Locale " + locale.getId()
+ " is not enabled on this server. Please contact admin.",
403);
}
if (!allList.contains(hLocale)) {