Vector<?> queryHits = queryResult.getQueryHits();
Iterator<?> iterator = queryHits.iterator();
while (iterator.hasNext()) {
Object object = iterator.next();
if (object instanceof CompassContentLanguage) {
CompassContentLanguage compassContentLanguage = (CompassContentLanguage) object;
Content content = (Content) em.find(Content.class, compassContentLanguage.getContentId());
ContentInfo contentInfo = formatContent(content);
vector.add(contentInfo);
}
if (object instanceof CompassItemLanguage) {
CompassItemLanguage compassItemLanguage = (CompassItemLanguage) object;