public void connect() throws NotConnectedException, IOException,AuthenticationNotSupportedException {
public void connect() throws NotConnectedException,IOException,AuthenticationNotSupportedException,FtpIOException,FtpWorkflowException {
    public void connect() throws NotConnectedException, IOException,AuthenticationNotSupportedException {        try        {            socketProvider = new SocketProvider();        }catch (IOException ioe)        {            String error = "Error creating SocketProvider: " + ioe.getMessage();            log.error(error,ioe);            throw new NotConnectedException(error);        }        // Only for logging        String hostAndPort = getAddress().getHostName() + ":" + getAddress().getPort();        try        {            if(socketProvider.connect(getAddress()))            {                   log.debug("connected to:" + hostAndPort);                socketProvider.socket().setSoTimeout(getTimeout());                socketProvider.socket().setKeepAlive(true);            }            else            {                String error = "Couln't not connect to: " + hostAndPort;                log.error(error);                throw new NotConnectedException(error);            }        }catch (IOException ioe)        {            String error = "Error connection to:" + hostAndPort;            log.error(error,ioe);            throw new NotConnectedException(error);        }        (ReplyWorker.readReply(socketProvider)).dumpReply(System.out);        (sendCommand(new Command(Command.USER,getUser()))).dumpReply(System.out);        if(getPassword() != null && getPassword().length() > 0)           (sendCommand(new Command(Command.PASS,getPassword()))).dumpReply(System.out);        if(getAccount() != null && getAccount().length() > 0)            (sendCommand(new Command(Command.ACCT,getAccount()))).dumpReply(System.out);    }