accountsForm.initialize(users, request.getSession());
ActionMessages messages = new ActionMessages();
if (userDatabase.supportsAccountCreation() && !userDatabase.supportsPasswordChange()) {
messages.add(Globals.MESSAGE_KEY, new ActionMessage("availableAccounts.noPasswordChange.text"));
}
if (!userDatabase.supportsAccountCreation() && userDatabase.supportsPasswordChange()) {
messages.add(Globals.MESSAGE_KEY, new ActionMessage("availableAccounts.noAccountCreation.text"));
} else if (!userDatabase.supportsAccountCreation() && !userDatabase.supportsPasswordChange()) {
messages.add(Globals.MESSAGE_KEY, new ActionMessage("availableAccounts.noAccountCreationAndNoPasswordChange.text"));
}
if (messages.size() > 0) {