List<Locale> localesRefs =
Lists.newArrayListWithExpectedSize(locales.size());
for (HLocale hLocale : locales) {
localesRefs.add(new Locale(hLocale.getLocaleId(),
hLocale.retrieveDisplayName()));
}
Type genericType = new GenericType<List<Locale>>() {
}.getGenericType();