public List<String> analyze(String urlOrig, String responseBody) {

        List <String> urls = new ArrayList <String>();
        Document doc = Jsoup.parse(responseBody);
        Elements links = null;
        List<String> urlsFound = null;

        HashMap<String, String> map = new HashMap<String, String>();
        map.put("a[href]", "href");
        map.put("frame[src]", "src");

        for (Map.Entry<String, String> e: map.entrySet()) {
            links = doc.select(e.getKey());
            urlsFound = getUrlFromLinks(urlOrig, links, e.getValue());
            if (urlsFound.size() > 0) {
                urls.addAll(urlsFound);
            }
        }
        if (urls.size() > 0) {
            Collections.sort(urls);
        }

        return urls;
    }