if (atAt >= 0) {
name = username.substring(0, atAt);
}
user = new ToolUser();
UserPasswordPolicy userPasswordPolicy = UserPasswordPolicy.Static.getInstance(Settings.get(String.class, "cms/tool/userPasswordPolicy"));
PasswordPolicy passwordPolicy = null;
Password hashedPassword;
if (userPasswordPolicy == null) {
passwordPolicy = PasswordPolicy.Static.getInstance(Settings.get(String.class, "cms/tool/passwordPolicy"));
}