mil.dod.th.confluence.doclet/src/org/udri/doclet/confluence/ConfluenceDoclet.java
private static void createLinkMap() 
    {
        for (String link : apiPages)
        {
            String finalLink = link;
            while (confluencePages.contains(finalLink))
            {
                finalLink = finalLink + "_";
            }
            linkMap.put(link, finalLink);
        }
    }
/**
     * Check the list of pages the doclet would like to create for the api
     * against the list of pages that are currently on the confluence space.
     * 
     * If a page exists, rename it with underscores appended until the name
     * is no longer taken.
     * 
     * When the desired name is found, store the new name mapped to the old
     * name in order to correctly link to the new page throughout the document.
     */
Check the list of pages the doclet would like to create for the api
against the list of pages that are currently on the confluence space.

If a page exists, rename it with underscores appended until the name
is no longer taken.

When the desired name is found, store the new name mapped to the old
name in order to correctly link to the new page throughout the document.
Check the list of pages the doclet would like to create for the api against the list of pages that are currently on the confluence space . If a page exists rename it with underscores appended until the name is no longer taken . When the desired name is found store the new name mapped to the old name in order to correctly link to the new page throughout the document .
private static void createLinkMap() 
    {
        for (String link : apiPages)
        {
            String finalLink = link;
            while (confluencePages.contains(finalLink))
            {
                finalLink = finalLink + "_";
            }
            linkMap.put(link, finalLink);
        }
    }
private static void createLinkMap ( ) { for ( String link : apiPages ) { String finalLink = link ; while ( confluencePages . contains ( finalLink ) ) { finalLink = finalLink + "_" ; } linkMap . put ( link , finalLink ) ; } }
Check the list of pages the doclet would like to create for the api
 against the list of pages that are currently on the confluence space.
Check the list of pages the doclet would like to create for the api against the list of pages that are currently on the confluence space .