Collection allAuths = new ArrayList();
List allAuths = new ArrayList(); if (myDefaultCredentials != null && PASSWORD.equals(kind)) { allAuths.add(0, myDefaultCredentials); }
    public SVNAuthentication[] getAvailableAuthentications(String kind, String realm) {        // load from files (for ssh, user, password)        Collection allAuths = new ArrayList();        if (myCachedAuths.containsKey(kind)) {            Collection cachedAuths = (Collection) myCachedAuths.get(kind);            for (Iterator iterator = cachedAuths.iterator(); iterator.hasNext();) {                SVNAuthentication cachedAuth = (SVNAuthentication) iterator.next();                if (cachedAuth != null && (realm.equals(cachedAuth.getRealm()) || cachedAuth.getRealm() == null)) {                    allAuths.add(cachedAuth);                }            }        }        if (SSH.equals(kind) || USERNAME.equals(kind) || PASSWORD.equals(kind)) {            SVNAuthentication auth = loadCredentials(kind, realm);            if (auth != null) {                allAuths.add(auth);            }        }        return (SVNAuthentication[]) allAuths.toArray(new SVNAuthentication[allAuths.size()]);    }