public PostsList getForum(ForumTopic forumTopic, int start, int max) {
if (forumTopic instanceof User) {
User user = (User) forumTopic;
return schoolDAO.getUserThreads(user.getId(), start, max);
} else if (forumTopic instanceof School) {
School school = (School) forumTopic;
return schoolDAO.getSchoolThreads(school.getId(), start, max);
} else if (forumTopic instanceof ForumPost) {
ForumPost post = (ForumPost) forumTopic;
return schoolDAO.getPostsForThread(post, start, max);
} else if (forumTopic instanceof RecentForumPostTopic) {
return schoolDAO.getRecentForumPosts(start, max);