UIComponent component = event.getComponent();
String sCommand = Val.chkStr((String)component.getAttributes().get("command"));
// execute the command
if (sCommand.equals("changePassword")) {
if (!support.getSupportsPasswordChange()) throw new NotAuthorizedException("Not authorized.");
assertLoggedIn(context);
executeChangePassword(event,context);
} else if (sCommand.equals("recoverPassword")) {
if (!support.getSupportsPasswordRecovery()) throw new NotAuthorizedException("Not authorized.");
executeRecoverPassword(event,context);
} else if (sCommand.equals("registerUser")) {
if (!support.getSupportsUserRegistration()) throw new NotAuthorizedException("Not authorized.");
executeRegisterUser(event,context);
} else if (sCommand.equals("sendFeedback")) {
executeSendFeedback(event,context);
} else if (sCommand.equals("updateProfile")) {
if (!support.getSupportsUserProfileManagement()) throw new NotAuthorizedException("Not authorized.");
assertLoggedIn(context);
executeUpdateProfile(event,context);
}
}