public DataForm getMetadataForm(Locale preferredLocale) {
        getLogger().trace("Get data form with node configuration with meta-data.");

        DataForm form = new DataForm(DataForm.Type.result);
        FormField formField = form.addField();
        formField.setVariable("FORM_TYPE");
        formField.setType(FormField.Type.hidden);
        formField.addValue("http://jabber.org/protocol/pubsub#meta-data");
        // Add the form fields
        addFormFields(form, preferredLocale, true);
        return form;
    }
Returns a data form containing the node configuration that is going to be used for
service discovery.

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