public Page getDiscussionPage ( Page articlePage ) throws WikiApiException { String articleTitle = articlePage . getTitle ( ) . toString ( ) ; if ( articleTitle . startsWith ( WikiConstants . DISCUSSION_PREFIX ) ) { return articlePage ; } else { return new Page ( this , WikiConstants . DISCUSSION_PREFIX + articleTitle ) ; } }
Gets the discussion page for the given article page The provided page must not be a discussion page