// if user and password weren't provided, check the system properties
if (user == null) {
user = getTransportClientProperties().getProxyUser();
}
if (password == null) {
password = getTransportClientProperties().getProxyPassword();
}
return new java.net.PasswordAuthentication(user, password.toCharArray());