if (kind == null || realm == null) {
if (kind == null) {
    private void deleteCredentials(String kind, String realm) {        if (realm == null) {            return;        }        if (PROXY.equals(kind)) {            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)) {                        // exact match.                        groupName = name;                        break;                    }                }            }            if (groupName != 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)) {            // realm could be exact group value (or "*" for global) or host.            // now process exact only.            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)) {                        // exact match.                        groupName = name;                        break;                    }                }            }            if (groupName != 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();    }