(HttpTransportProperties.MailProperties) obj;
smtpProperties.clear();
smtpProperties.putAll(props.getProperties());
String username = (String) smtpProperties.get(Constants.SMTP_USER);
String passwd = props.getPassword();
passwordAuthentication = new PasswordAuthentication(username, passwd);
} else if (obj instanceof java.util.Properties) {
smtpProperties.clear();
java.util.Properties props = (java.util.Properties) obj;
smtpProperties.putAll(props);
}