@Override
    protected Component<? super Component<?, ?>, ?> doBuild(DeployState deployState, TreeConfigProducer<AnyConfigProducer> ancestor, Element spec) {
        var component = buildComponent(spec, deployState, ancestor);
        addChildren(deployState, ancestor, spec, component);
        return component;
    }
@Test
    void ensureCorrectModel() {
        Component<?, ?> handler = new DomComponentBuilder().doBuild(root.getDeployState(), root, parse(
                "<handler id='theId' class='theClass' bundle='theBundle' />"));

        BundleInstantiationSpecification instantiationSpecification = handler.model.bundleInstantiationSpec;
        assertEquals("theId", instantiationSpecification.id.stringValue());
        assertEquals("theClass", instantiationSpecification.classId.stringValue());
        assertEquals("theBundle", instantiationSpecification.bundle.stringValue());
    }