title: Method duplicates output
body: <p>Pretty new to sling and Java so I apologize in advance. But does anybody have any idea why when I'm at the root it's outputting
  my path twice? It's odd that it only happens at the absolute root.  </p>
  
  <pre><code>public static String generateTest(Page page, Page rootPage, String bc) {
  
      Page parent = page.getParent();
  
      String bread = ""; 
      bread += (parent != null) ? "&lt;li&gt;&lt;a href=" + parent.getPath() + "&gt;" + parent.getTitle() + "&lt;/a&gt;" : "";
      bread += "&lt;li&gt;" + "&lt;a href=" + page.getPath() + "&gt;" + page.getTitle() + "&lt;/a&gt;&lt;/li&gt;" + bc;
      return (ifAtRoot(parent , rootPage)) ? breadcrumb : generateTest(parent, rootPage, bread);
  
  }
  
  public static boolean ifAtRoot(Page page, Page root) {
      return (page == null || root.getPath() == page.getPath());
  }
  </code></pre>
  
  <p>Any help is greatly appreciated!</p>