@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.editallowedlist.form.title", preferredLocale));
        form.addInstruction(LocaleUtils.getLocalizedString("commands.admin.editallowedlist.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.jid_multi);
        field.setLabel(LocaleUtils.getLocalizedString("commands.admin.editallowedlist.form.field.whitelistjids.label", preferredLocale));
        field.setVariable("whitelistjids");
        field.setRequired(true);
        for (RemoteServerConfiguration allowed : RemoteServerManager.getAllowedServers()) {
            field.addValue(new JID(null, allowed.getDomain(), null));
        }

        // Add the form to the command
        command.add(form.getElement());
    }
Edits the list of external domains that are allowed to connect to Openfire

@author Guus der Kinderen, guus@goodbytes.nl
@see <a href="https://xmpp.org/extensions/xep-0133.html#edit-whitelist">XEP-0133 Service Administration: Edit Whitelist</a>
xmppserver/src/main/java/org/jivesoftware/openfire/commands/admin/EditAllowedList.java