} else if(ISVNAuthenticationManager.USERNAME.equals(kind)) {
String userName = previousAuth != null && previousAuth.getUserName() != null ? previousAuth.getUserName() : getUserName(null, url);
if (myPrompt instanceof PromptUserPasswordUser) {
PromptUserPasswordUser prompt3 = (PromptUserPasswordUser) myPrompt;
if (prompt3.promptUser(realm, userName, authMayBeStored)) {
return new SVNUserNameAuthentication(prompt3.getUsername(), prompt3.userAllowedSave());
}
return getDefaultUserNameCredentials(userName);
} else if (myPrompt instanceof PromptUserPassword3) {
PromptUserPassword3 prompt3 = (PromptUserPassword3) myPrompt;
if (prompt3.prompt(realm, userName, authMayBeStored)) {
return new SVNUserNameAuthentication(prompt3.getUsername(), prompt3.userAllowedSave());
}
return getDefaultUserNameCredentials(userName);
}
if (myPrompt.prompt(realm, userName)) {
return new SVNUserNameAuthentication(myPrompt.getUsername(), false);
}
return getDefaultUserNameCredentials(userName);
} else if(!ISVNAuthenticationManager.PASSWORD.equals(kind)){
return null;
}