public void insertBacklinks(Page page) throws IOException, LinkClassifierException {
        URL url = page.getURL();
        BackLinkNeighborhood[] links = graphRepository.getBacklinks(url);
        if (links == null || (links != null && links.length < 10)) {
            links = backlinkSurfer.getLNBacklinks(url);
        }
        if (links != null && links.length > 0) {
            LinkRelevance[] linksRelevance = new LinkRelevance[links.length];
            for (int i = 0; i < links.length; i++) {
                BackLinkNeighborhood backlink = links[i];
                if (backlink != null) {
                    LinkNeighborhood ln = new LinkNeighborhood(new URL(backlink.getLink()));
                    String title = backlink.getTitle();
                    if (title != null) {
                        ln.setAround(tokenizeText(title));
                    }
                    linksRelevance[i] = backlinkClassifier.classify(ln);
                }
            }
            this.insert(linksRelevance);
        }
        URL normalizedURL = new URL(url.getProtocol(), url.getHost(), "/");
        graphRepository.insertBacklinks(normalizedURL, links);
    }
This class manages the crawler frontier

@author Luciano Barbosa
@version 1.0
ache/src/main/java/achecrawler/link/frontier/FrontierManager.java