public FTPClient getFTP() throws IOException, FTPException {
FTPClient ftp = null;
if (config.getProxyUrl() == null) {
ftp = new FTPClient();
} else {
ftp = new FTPHTTPClient(config.getProxyUrl().getHost(),
config.getProxyPort(), config.getProxyUser(),
config.getProxyPassword());
}
ftp.connect(config.getFtpHost(), config.getFtpPort());
if (!ftp.login(config.getFtpUsername(), config.getFtpPassword())) {