.notNull(new Object[]
{ username, atnProviderName}, new String[]
{ "username", "atnProviderName"},
"addUser(java.lang.String, java.lang.String, java.lang.String)");
if (getAnonymousUser().equals(username)) { throw new SecurityException(
SecurityException.ANONYMOUS_USER_PROTECTED.create(username)); }
// Check if user already exists.
if (userExists(username)) {
throw new SecurityException(SecurityException.USER_ALREADY_EXISTS.create(username));
}
UserPrincipal userPrincipal = new UserPrincipalImpl(username);
String fullPath = userPrincipal.getFullPath();
// Add the preferences.