code: public Iterable<Page> getDiscussionArchives(Page articlePage) throws WikiApiException{
          String articleTitle = articlePage.getTitle().getWikiStyleTitle();
      	if(!articleTitle.startsWith(WikiConstants.DISCUSSION_PREFIX)){
      		articleTitle=WikiConstants.DISCUSSION_PREFIX+articleTitle;
      	}
  
      	Session session = this.__getHibernateSession();
          session.beginTransaction();
  
          List<Page> discussionArchives = new LinkedList<Page>();
  
          Query query = session.createQuery("SELECT pageID FROM PageMapLine where name like :name");
          query.setParameter("name", articleTitle+"/%", StringType.INSTANCE);
          Iterator results = query.list().iterator();
  
          session.getTransaction().commit();
  
          while (results.hasNext()) {
              int pageID = (Integer) results.next();
              discussionArchives.add(getPage(pageID));
          }
  
          return discussionArchives;
  
      }
docs: Return an iterable containing all archived discussion pages for
  the given article page. The most recent discussion page is not included.
  The most recent discussion page can be obtained with {@link #getDiscussionPage(Page)}.
  <br>
  The provided page Object must not be a discussion page itself! If it is
  a discussion page, is returned unchanged.
  
  @param articlePage the article page for which a discussion archives should be retrieved
  @return An iterable with the discussion archive page objects for the given article page object
  @throws WikiApiException If no page or redirect with this title exists or title could not be properly parsed.