final TypeSearchResult typeSearch, final Integer maxResults,
final Integer start, final CommentOptions commentOptions, final SearchPeriods period) {
final DetachedCriteria criteria = DetachedCriteria
.forClass(Comment.class);
if (typeSearch.equals(TypeSearchResult.TWEETPOLL)) {
criteria.createAlias("tweetPoll", "tweetPoll");
criteria.add(Restrictions.eq("tweetPoll.tweetPollId", id));
} else if (typeSearch.equals(TypeSearchResult.POLL)) {
criteria.createAlias("poll", "poll");
criteria.add(Restrictions.eq("poll.pollId", id));
} else if (typeSearch.equals(TypeSearchResult.SURVEY)) {