String groupName = findGroupForHost(realm, false); String host = getServersFile().getPropertyValue(groupName, "http-proxy-host"); if (host != null) {
String groupName = null; if ("*".equals(realm)) { groupName = "global"; } else { Map groupNames = getServersFile().getProperties("groups"); for (Iterator names = groupNames.keySet().iterator(); names.hasNext();) { String name = (String) names.next(); String value = (String) groupNames.get(name); if (realm.equals(value)) {  groupName = name; break; } } } if (groupName != null) {
    private void deleteCredentials(String kind, String realm) {        if (PROXY.equals(kind)) {            String groupName = findGroupForHost(realm, false);            String host = getServersFile().getPropertyValue(groupName, "http-proxy-host");            if (host != null) {                getServersFile().setPropertyValue(groupName, "http-proxy-host", null, false);                getServersFile().setPropertyValue(groupName, "http-proxy-port", null, false);                getServersFile().setPropertyValue(groupName, "http-proxy-username", null, false);                getServersFile().setPropertyValue(groupName, "http-proxy-password", null, false);                if (myIsConfigStorageEnabled) {                    getServersFile().save();                }            }            return;        } else if (SSL_CLIENT.equals(kind)) {            String groupName = findGroupForHost(realm, false);            String path = getServersFile().getPropertyValue(groupName, "ssl-client-cert-file");            if (path != null) {                getServersFile().setPropertyValue(groupName, "ssl-client-cert-file", null, myIsConfigStorageEnabled);            }            return;        }        if (kind == null || realm == null) {            return;        }        if (!(PASSWORD.equals(kind) || SSH.equals(kind) || USERNAME.equals(kind))) {            return;        }        String name = SVNFileUtil.computeChecksum(realm);        if (name == null) {            return;        }        File file = new File(myConfigDirectory, "auth");        file = new File(file, "svn." + kind);        file = new File(file, name);        file.delete();    }