class DefaultSocks5ConnectionsRegistry implements Socks5ConnectionsRegistry {

    public boolean activate(String hash) {
        Socks5Pair pair = pairs.get(hash);
        if(pair != null && pair.getRequester() != null) {
            pair.activate();
            return true;
        } else {
            return false;
        }
    }

}