@Override
 protected void initModel(Resource rootResource, ManagementResourceRegistration rootRegistration) {
   DomainModelUtil.updateCoreModel(rootResource.getModel());
   HostModelUtil.createHostRegistry(
       rootRegistration,
       hostControllerConfigurationPersister,
       environment,
       runningModeControl,
       localFileRepository,
       hostControllerInfo,
       new DelegatingServerInventory(),
       remoteFileRepository,
       this,
       this,
       vaultReader);
   this.modelNodeRegistration = rootRegistration;
 }
 @Override
 public void registerHostModel(String hostName, ManagementResourceRegistration root) {
   HostModelUtil.createHostRegistry(
       hostName,
       root,
       hostControllerConfigurationPersister,
       environment,
       runningModeControl,
       localFileRepository,
       hostControllerInfo,
       new DelegatingServerInventory(),
       remoteFileRepository,
       contentRepository,
       this,
       extensionRegistry,
       vaultReader,
       ignoredRegistry,
       processState,
       pathManager);
 }
    @Override
    public void initCoreModel(
        Resource rootResource,
        ManagementResourceRegistration rootRegistration,
        Resource modelControllerResource) {
      HostModelUtil.createRootRegistry(
          rootRegistration,
          env,
          ignoredRegistry,
          new HostModelRegistrar() {
            @Override
            public void registerHostModel(
                String hostName, ManagementResourceRegistration rootRegistration) {}
          },
          ProcessType.HOST_CONTROLLER,
          authorizer,
          modelControllerResource);

      HostModelUtil.createHostRegistry(
          hostName,
          rootRegistration,
          persister,
          env,
          (HostRunningModeControl) runningModeControl,
          hostFileRepository,
          info,
          null /*serverInventory*/,
          null /*remoteFileRepository*/,
          injectedContentRepository.getValue(),
          domainController,
          extensionRegistry,
          null /*vaultReader*/,
          ignoredRegistry,
          processState,
          pathManagerService,
          authorizer,
          AuditLogger.NO_OP_LOGGER,
          getBootErrorCollector());
    }