myLastProvidedAuthentication = auth;
    public SVNAuthentication getFirstAuthentication(String kind, String realm) {        SVNAuthentication[] auths = getAvailableAuthentications(kind, realm);        myProvidedAuthentications.remove(kind);        SVNAuthentication auth = null;        if (auths == null || auths.length <= 0) {            if (getAuthenticationProvider() != null) {                auth = getAuthenticationProvider().requestClientAuthentication(kind, realm, null, this);            }        } else if (auths.length > 0) {            auth = auths[0];        }        if (auth != null) {            myProvidedAuthentications.put(kind, new Integer(1));        }        return auth;    }