} else if (proxy != null && isControllConnection() == true) {
} else {
    public void connect(SocketAddress remote, Proxy proxy, int maxDownload,            int maxUpload) throws IOException {        if (proxy == null) {            socket.connect(remote);        } else if (proxy != null && isControllConnection() == true) {            InetSocketAddress isa = (InetSocketAddress) remote;            socket = proxy.connect(isa.getAddress().getHostAddress(), isa                    .getPort());        } else if (proxy != null && isControllConnection == false) {            socket = proxy.bind((InetSocketAddress) remote);        }        this.maxDownload = maxDownload;        this.maxUpload = maxUpload;        initStreams();    }