public DataForm getConfigurationForm(Locale preferredLocale) {
        getLogger().trace("Get data form used by owner to edit the node configuration.");

        DataForm form = new DataForm(DataForm.Type.form);
        form.setTitle(LocaleUtils.getLocalizedString("pubsub.form.conf.title", preferredLocale));
        List<String> params = new ArrayList<>();
        params.add(nodeID);
        form.addInstruction(LocaleUtils.getLocalizedString("pubsub.form.conf.instruction", params, preferredLocale));

        FormField formField = form.addField();
        formField.setVariable("FORM_TYPE");
        formField.setType(FormField.Type.hidden);
        formField.addValue("http://jabber.org/protocol/pubsub#node_config");

        // Add the form fields and configure them for edition
        addFormFields(form, preferredLocale, true);
        return form;
    }
Returns a data form used by the owner to edit the node configuration.

@param preferredLocale The preferred locale to localize the form.
@return data form used by the owner to edit the node configuration.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/Node.java