final String idauthz = this.getIdAuthz();
if (idauthz == null) {
client.setAuthorization(HostAuthorization.getInstance());
} else {
final IdentityAuthorization idA =
new IdentityAuthorization(idauthz);
client.setAuthorization(idA);
}
client.authenticate(null);
client.setType(Session.TYPE_ASCII);