if (password == null && keyFile == null) {  userName = System.getProperty("javasvn.ssh2.username"); keyFile = System.getProperty("javasvn.ssh2.key"); passphrase = System.getProperty("javasvn.ssh2.passphrase"); password = System.getProperty("javasvn.ssh2.password"); }
userName = userName == null ? System.getProperty("javasvn.ssh2.username") : userName; keyFile = keyFile == null ? System.getProperty("javasvn.ssh2.key") : keyFile; passphrase = passphrase == null ? System.getProperty("javasvn.ssh2.passphrase") : passphrase; password = password == null ? System.getProperty("javasvn.ssh2.password") : password; port = port == null ? System.getProperty("javasvn.ssh2.port") : port;
    protected SVNSSHAuthentication getDefaultSSHAuthentication() {        Map tunnels = getServersFile().getProperties("tunnels");        if (tunnels == null || !tunnels.containsKey("ssh")) {            return null;        }                String sshProgram = (String) tunnels.get("ssh");        String userName = getOptionValue(sshProgram, "-l");        String password = getOptionValue(sshProgram, "-pw");        String keyFile = getOptionValue(sshProgram, "-i");        String passphrase = null;         if (password == null && keyFile == null) {            // fallback to system properties.            userName = System.getProperty("javasvn.ssh2.username");            keyFile = System.getProperty("javasvn.ssh2.key");            passphrase = System.getProperty("javasvn.ssh2.passphrase");            password = System.getProperty("javasvn.ssh2.password");        }        if (userName == null) {            userName = System.getProperty("user.name");        }                if (userName != null && password != null) {            return new SVNSSHAuthentication(userName, password, isAuthStorageEnabled());        } else if (userName != null && keyFile != null) {            return new SVNSSHAuthentication(userName, new File(keyFile), passphrase, isAuthStorageEnabled());        }        return null;    }