public static Session getInstance( Properties properties, Authenticator authenticator) { Session session = new Session(); session._authenticator = authenticator; session._properties = new Properties(properties); session._debug = Boolean.getBoolean(properties.getProperty("mail.debug", "false")); return session;
public static Session getInstance(Properties properties) { return getInstance(properties, null);
    public static Session getInstance(        Properties properties,        Authenticator authenticator) {        Session session = new Session();        session._authenticator = authenticator;        session._properties = new Properties(properties);        session._debug =            Boolean.getBoolean(properties.getProperty("mail.debug", "false"));        return session;    }