docs: private void stageDeploymentFileForInitialize(Configuration config, DeploymentType dt) {
  
          String deprootFN = dt.getPaths().getVoltdbroot().getPath();
          File   deprootFH = new VoltFile(deprootFN);
          File   cnfrootFH = config.m_voltdbRoot;
  
          if (!cnfrootFH.exists() && !cnfrootFH.mkdirs()) {
              VoltDB.crashLocalVoltDB("Unable to create the voltdbroot directory in " + cnfrootFH, false, null);
          }
          try {
              File depcanoFH = null;
              try {
                  depcanoFH = deprootFH.getCanonicalFile();
              } catch (IOException e) {
                  depcanoFH = deprootFH;
              }
              File cnfcanoFH = cnfrootFH.getCanonicalFile();
              if (!cnfcanoFH.equals(depcanoFH)) {
                  dt.getPaths().getVoltdbroot().setPath(cnfrootFH.getPath());
              }
              // root in deployment conflicts with command line voltdbroot
              if (!VoltDB.DBROOT.equals(deprootFN)) {
                  consoleLog.info("Ignoring voltdbroot \"" + deprootFN + "\" specified in the deployment file");
                  hostLog.info("Ignoring voltdbroot \"" + deprootFN + "\" specified in the deployment file");
              }
          } catch (IOException e) {
              VoltDB.crashLocalVoltDB(
                      "Unable to resolve voltdbroot location: " + config.m_voltdbRoot,
                      false, e);
              return;
          }
  
          // check for already existing artifacts
          List<String> nonEmptyPaths = managedPathsWithFiles(config, dt);
          if (!nonEmptyPaths.isEmpty()) {
              StringBuilder crashMessage =
                      new StringBuilder("Files from a previous database session exist in the managed directories:");
              for (String nonEmptyPath : nonEmptyPaths) {
                  crashMessage.append("\n  - " + nonEmptyPath);
              }
              crashMessage.append("\nUse the start command to start the initialized database or use init --force" +
                  " to initialize a new database session overwriting existing files.");
              VoltDB.crashLocalVoltDB(crashMessage.toString());
              return;
          }
          // create the config subdirectory
          File confDH = getConfigDirectory(config);
          if (!confDH.exists() && !confDH.mkdirs()) {
              VoltDB.crashLocalVoltDB("Unable to create the config directory " + confDH);
              return;
          }
          // create the large query swap subdirectory
          File largeQuerySwapDH = new File(getLargeQuerySwapPath());
          if (! largeQuerySwapDH.exists() && !largeQuerySwapDH.mkdirs()) {
              VoltDB.crashLocalVoltDB("Unable to create the large query swap directory " + confDH);
              return;
          }
          // create the remaining paths
          if (config.m_isEnterprise) {
              List<String> failed = m_nodeSettings.ensureDirectoriesExist();
              if (!failed.isEmpty()) {
                  String msg = "Unable to access or create the following directories:\n    "
                          + Joiner.on("\n    ").join(failed);
                  VoltDB.crashLocalVoltDB(msg);
                  return;
              }
          }
  
          //Now its safe to Save .paths
          m_nodeSettings.store();
  
           //Now that we are done with deployment configuration set all path null.
           dt.setPaths(null);
  
          // log message unconditionally indicating that the provided host-count and admin-mode settings in
          // deployment, if any, will be ignored
          consoleLog.info("When using the INIT command, some deployment file settings (hostcount and voltdbroot path) "
                  + "are ignored");
          hostLog.info("When using the INIT command, some deployment file settings (hostcount and voltdbroot path) are "
                  + "ignored");
  
          File depFH = getConfigLogDeployment(config);
          try (FileWriter fw = new FileWriter(depFH)) {
              fw.write(CatalogUtil.getDeployment(dt, true /* pretty print indent */));
          } catch (IOException|RuntimeException e) {
              VoltDB.crashLocalVoltDB("Unable to marshal deployment configuration to " + depFH, false, e);
          }
  
          // Save cluster settings properties derived from the deployment file
          ClusterSettings.create(CatalogUtil.asClusterSettingsMap(dt)).store();
      }