List<SimpleSuggestion> tags = new ArrayList<SimpleSuggestion>();
List<String> suggestions;
try {
suggestions = site.getContentRepository().suggest("subject", text, limit);
for (String s : suggestions) {
tags.add(new SimpleSuggestion("subject", s));
}
} catch (ContentRepositoryException e) {
logger.warn("Error loading subject suggestions for '" + text + "'", e);
return null;
}