@Override
    protected List<Action> getActions(@Nonnull final SessionData data) {
        if (data.getStage() == 0) {
            return Collections.singletonList(Action.next);
        }
        else if (data.getStage() == 1) {
            return Arrays.asList(AdHocCommand.Action.next, AdHocCommand.Action.prev, AdHocCommand.Action.complete);
        }
        return Collections.singletonList(Action.complete);
    }
Command that allows to update a given group.

@author Gaston Dombiak
xmppserver/src/main/java/org/jivesoftware/openfire/commands/admin/group/UpdateGroup.java