class WikiPage extends WikiPageReference {

    public List<String> getAlternativeTitles() {
        List<String> sections = getSections();
        if (sections.size() > 0) {
            String firstSection = sections.get(0);
            firstSection = MediaWikiUtil.REF_PATTERN.matcher(firstSection).replaceAll("");
            firstSection = MediaWikiUtil.replaceLangPattern(firstSection);
            firstSection = StringEscapeUtils.unescapeHtml4(firstSection);
            firstSection = HtmlHelper.stripHtmlTags(firstSection);
            firstSection = MediaWikiUtil.processLinks(firstSection, MediaWikiUtil.EXTERNAL_LINK_PATTERN);
            firstSection = MediaWikiUtil.processLinks(firstSection, MediaWikiUtil.INTERNAL_LINK_PATTERN);
            firstSection = MediaWikiUtil.removeBetween(firstSection, '{', '{', '}', '}');
            firstSection = MediaWikiUtil.removeBetween(firstSection, '{', '|', '|', '}');
            firstSection = firstSection.trim();
            for (String split : firstSection.split("\n")) {
                List<String> titles = getStringsInBold(split);
                if (titles.size() > 0) {
                    return titles;
                }
            }
        }
        return Collections.emptyList();
    }

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

}