@Override
    protected void addStageInformation(@Nonnull final SessionData data, Element command) {
        final Locale preferredLocale = SessionManager.getInstance().getLocaleForSession(data.getOwner());

        DataForm form = new DataForm(DataForm.Type.form);
        form.setTitle(LocaleUtils.getLocalizedString("commands.admin.packetsnotification.form.title", preferredLocale));
        form.addInstruction(LocaleUtils.getLocalizedString("commands.admin.packetsnotification.form.instruction", preferredLocale));

        FormField field = form.addField();
        field.setType(FormField.Type.hidden);
        field.setVariable("FORM_TYPE");
        field.addValue("http://jabber.org/protocol/admin");

        field = form.addField();
        field.setType(FormField.Type.list_multi);
        field.setLabel(LocaleUtils.getLocalizedString("commands.admin.packetsnotification.form.field.packet_type.label", preferredLocale));
        field.setVariable("packet_type");
        field.addOption(LocaleUtils.getLocalizedString("commands.admin.packetsnotification.form.field.packet_type.option.presence.label", preferredLocale), "presence");
        field.addOption(LocaleUtils.getLocalizedString("commands.admin.packetsnotification.form.field.packet_type.option.iq.label", preferredLocale), "iq");
        field.addOption(LocaleUtils.getLocalizedString("commands.admin.packetsnotification.form.field.packet_type.option.message.label", preferredLocale), "message");
        field.setRequired(true);

        field = form.addField();
        field.setType(FormField.Type.list_single);
        field.setLabel(LocaleUtils.getLocalizedString("commands.admin.packetsnotification.form.field.direction.label", preferredLocale));
        field.setVariable("direction");
        field.addOption(LocaleUtils.getLocalizedString("commands.admin.packetsnotification.form.field.direction.option.incoming.label", preferredLocale), "incoming");
        field.addOption(LocaleUtils.getLocalizedString("commands.admin.packetsnotification.form.field.direction.option.outgoing.label", preferredLocale), "outgoing");
        field.setRequired(true);

        field = form.addField();
        field.setType(FormField.Type.list_single);
        field.setLabel(LocaleUtils.getLocalizedString("commands.admin.packetsnotification.form.field.processed.label", preferredLocale));
        field.setVariable("processed");
        field.addOption(LocaleUtils.getLocalizedString("commands.admin.packetsnotification.form.field.processed.option.false.label", preferredLocale), "false");
        field.addOption(LocaleUtils.getLocalizedString("commands.admin.packetsnotification.form.field.processed.option.true.label", preferredLocale), "true");
        field.setRequired(true);

        // Add the form to the command
        command.add(form.getElement());
    }
Command that allows to retrieve the presence of all active users.

@author Gaston Dombiak

TODO Create command for removing subscriptions. Subscriptions will now be removed when component disconnects.
xmppserver/src/main/java/org/jivesoftware/openfire/commands/admin/PacketsNotification.java