core/src/main/java/com/digitalpebble/stormcrawler/protocol/ProtocolFactory.java
public synchronized Protocol getProtocol(URL url) {
        // get the protocol
        String protocol = url.getProtocol();
        return cache.get(protocol);
    }
public synchronized Protocol getProtocol(URL url) {
        // get the protocol
        String protocol = url.getProtocol();
        return cache.get(protocol);
    }
Returns an instance of the protocol to use for a given URL