described = service.resolveDescription(descriptionId, siteLocale, userLocale);
} else {
described = service.resolveDescription(descriptionId, siteLocale);
}
} catch (Throwable t) {
throw new ApiException("Failed to resolve description", t);
}
if (described != null) {
resolved = (nameFlag) ? described.getName() : described.getDescription();
}
}