+ // Debug message
+ $this->debugOutput('HELPER: Attempting self-connect...');
+
+ // Get the application instance
+ $applicationInstance = Registry::getRegistry()->getInstance('app');
+
+ // Get a XML template instance
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_template_class');
+
+ // Disable language support
+ $templateInstance->enableLanguageSupport(false);
+
+ /*
+ * Enable compacting/rewriting of the XML to save bandwidth from XML
+ * comments. This is expensive and should be avoided in general.
+ */
+ $templateInstance->enableXmlCompacting();
+
+ // Set it for later use
+ $this->setTemplateInstance($templateInstance);
+
+ // Read the XML descriptor
+ $this->getTemplateInstance()->loadSelfConnectTemplate();
+
+ // Render the XML content
+ $this->getTemplateInstance()->renderXmlContent();