@Override
        public void doBuild(AdminModel model, Element adminElement, ConfigModelContext modelContext) {
            // TODO: Remove in Vespa 9
            if ("3.0".equals(adminElement.getAttribute("version")))
                modelContext.getDeployState().getDeployLogger()
                            .logApplicationPackage(Level.WARNING, "admin model version 3.0 is deprecated and support will removed in Vespa 9, " +
                                    "please use version 4.0 or remove the element completely.");

            TreeConfigProducer<AnyConfigProducer> parent = modelContext.getParentProducer();
            ModelContext.Properties properties = modelContext.getDeployState().getProperties();
            DomAdminV4Builder domBuilder = new DomAdminV4Builder(modelContext,
                                                                 properties.multitenant(),
                                                                 properties.configServerSpecs(),
                                                                 model.getContainerModels());
            model.admin = domBuilder.build(modelContext.getDeployState(), parent, adminElement);
            // TODO: Is required since other models depend on admin.
            if (parent instanceof ApplicationConfigProducerRoot) {
                ((ApplicationConfigProducerRoot)parent).setupAdmin(model.admin);
            }
        }
Constructs a new config model given a context.

@param modelContext the model context.
config-model/src/main/java/com/yahoo/config/model/admin/AdminModel.java