else if(duccAuthenticator.isPasswordChecked() && (((password == null) || (password.trim().length() == 0)))) {
duccLogger.info(methodName, jobid, messages.fetch("login ")+userId+" "+messages.fetch("failed"));
sb.append("failure");
}
else {
Role role = Role.User;
String domain = null;
if(userId != null) {
if(userId.contains("@")) {
String[] parts = userId.split("@",2);
userId = parts[0];