try
{
ftpclient = new FTPClient();
ftpclient.setRemoteAddr(InetAddress.getByName(realServerName));
ftpclient.setRemotePort(Const.toInt(realServerPort, 21));
<BUG>if (log.isDetailed()) log.logDetailed(toString(), "Opened FTP connection to server ["+realServerName+"]");
if (activeConnection)</BUG>
{
ftpclient.setConnectMode(FTPConnectMode.ACTIVE);
<BUG>if (log.isDetailed()) log.logDetailed(toString(), "set active ftp connection mode");
}</BUG>
else

try
{
ftpclient = new FTPClient();
ftpclient.setRemoteAddr(InetAddress.getByName(realServerName));
ftpclient.setRemotePort(Const.toInt(realServerPort, 21));
if (log.isDetailed()) log.logDetailed(toString(), Messages.getString("JobFTPPUT.Log.OpenConnection",realServerName));
if (activeConnection)
{
ftpclient.setConnectMode(FTPConnectMode.ACTIVE);
if (log.isDetailed()) log.logDetailed(toString(), Messages.getString("JobFTPPUT.Log.SetActiveConnection"));
}
else
