class WikiPage extends WikiPageReference {

    public String getRedirectTitle() {
        Matcher matcher = MediaWikiUtil.REDIRECT_PATTERN.matcher(text);
        return matcher.find() ? matcher.group(1) : null;
    }

    public  WikiPage(int pageId, int namespaceId, String title, String text);

}