for (int i = 0; i < resources.length; i++) {
HttpResource resource = resources[i];
availableLanguagesStrings[i] = resource.getLocale()
.getLanguage();
}
throw new LanguageUnavailableHandlerException(
new LanguageUnavailableException(
"document variant not found",
availableLanguagesStrings));
}
response.setHeader(HeaderName.CONTENT_LANGUAGE, locale.toString());