private function prepareCreateXMLChildObject()
    {
        $fragment = new CNabuPHPMethodBuilder(
            $this, 'createXMLChildObject', CNabuPHPMethodBuilder::METHOD_PROTECTED,
            false, false, false, true, 'CNabuXMLDataObject'
        );
        $this->getDocument()->addUse('\nabu\xml\CNabuXMLDataObject');

        $fragment->addComment("Create the XML Child object filled with their Data Object.");
        $fragment->addComment("@return CNabuXMLDataObject Returns a XML instance with the child data object instance.");

        $fragment->addParam(
            'nb_child', 'CNabuDataObject', true, null, 'CNabuDataObject',
            'Child data object.'
        );
        $this->getDocument()->addUse('\nabu\data\CNabuDataObject');

        $class_name = preg_replace('/List(Base)*$/', '', $this->class_name);
        $class_ns = preg_replace('/\\\\base$/', '', $this->class_namespace);

        $fragment->addFragment("return new $class_name(\$nb_child);");
        $this->getDocument()->addUse("\\$class_ns\\$class_name");

        $this->addFragment($fragment);
    }