return auth;
} else if (auths.length > 0) { auth = auths[0];
    public SVNAuthentication getFirstAuthentication(String kind, String realm) {        SVNAuthentication[] auths = getAvailableAuthentications(kind, realm);        myProvidedAuthentications.remove(kind);        if (auths == null || auths.length <= 0) {            // get from provider!!!            SVNAuthentication auth = null;            if (getAuthenticationProvider() != null) {                String userName = System.getProperty("user.name");                auth = getAuthenticationProvider().requestClientAuthentication(kind, realm, userName, this);                if (auth != null) {                    myProvidedAuthentications.put(kind, new Integer(1));                }            }            return auth;        }        myProvidedAuthentications.put(kind, new Integer(1));        return auths[0];    }