} else if (ISVNAuthenticationManager.PASSWORD.equals(kind) && myPasswordAuthentications.size() > myPasswordIndex) {
} else if (ISVNAuthenticationManager.PASSWORD.equals(kind) && myPasswordIndex + 1 < myPasswordAuthentications.size()) {
    public SVNAuthentication getNextAuthentication(String kind, String realm, SVNURL url) throws SVNException {        if (ISVNAuthenticationManager.SSH.equals(kind) && mySSHAuthentications.size() > mySSHIndex) {            mySSHIndex++;             return (SVNAuthentication) mySSHAuthentications.get(mySSHIndex);        } else if (ISVNAuthenticationManager.PASSWORD.equals(kind) && myPasswordAuthentications.size() > myPasswordIndex) {            myPasswordIndex++;             return (SVNAuthentication) myPasswordAuthentications.get(myPasswordIndex);        }        throw new SVNAuthenticationException("svn: Authentication failed for '" + realm + "'");    }