code: public static ConfigurationModule getOrCreateAzureBatchRuntimeConfiguration(
        final boolean isWindows) {
  
      if (AzureBatchRuntimeConfigurationCreator.conf == null) {
        ConfigurationModuleBuilder builder = AzureBatchRuntimeConfigurationStatic.CONF;
  
        if (isWindows) {
          builder = builder.bindImplementation(CommandBuilder.class, WindowsCommandBuilder.class);
        } else {
          builder = builder.bindImplementation(CommandBuilder.class, LinuxCommandBuilder.class);
        }
  
        AzureBatchRuntimeConfigurationCreator.conf = new AzureBatchRuntimeConfiguration()
            .merge(builder.build())
            .bindNamedParameter(AzureBatchAccountName.class, AzureBatchRuntimeConfiguration.AZURE_BATCH_ACCOUNT_NAME)
            .bindNamedParameter(AzureBatchAccountUri.class, AzureBatchRuntimeConfiguration.AZURE_BATCH_ACCOUNT_URI)
            .bindNamedParameter(AzureBatchAccountKey.class, AzureBatchRuntimeConfiguration.AZURE_BATCH_ACCOUNT_KEY)
            .bindNamedParameter(AzureBatchPoolId.class, AzureBatchRuntimeConfiguration.AZURE_BATCH_POOL_ID)
            .bindNamedParameter(AzureStorageAccountName.class, AzureBatchRuntimeConfiguration.AZURE_STORAGE_ACCOUNT_NAME)
            .bindNamedParameter(AzureStorageAccountKey.class, AzureBatchRuntimeConfiguration.AZURE_STORAGE_ACCOUNT_KEY)
            .bindNamedParameter(ContainerRegistryServer.class, AzureBatchRuntimeConfiguration.CONTAINER_REGISTRY_SERVER)
            .bindNamedParameter(
                ContainerRegistryUsername.class, AzureBatchRuntimeConfiguration.CONTAINER_REGISTRY_USERNAME)
            .bindNamedParameter(
                ContainerRegistryPassword.class, AzureBatchRuntimeConfiguration.CONTAINER_REGISTRY_PASSWORD)
            .bindNamedParameter(ContainerImageName.class, AzureBatchRuntimeConfiguration.CONTAINER_IMAGE_NAME)
            .bindNamedParameter(
                AzureStorageContainerName.class, AzureBatchRuntimeConfiguration.AZURE_STORAGE_CONTAINER_NAME)
            .bindSetEntry(TcpPortSet.class, AzureBatchRuntimeConfiguration.TCP_PORT_SET)
            .build();
      }
  
      return AzureBatchRuntimeConfigurationCreator.conf;
    }
docs: Get or create a {@link ConfigurationModule} for the Azure Batch runtime.
  
  @param isWindows true if Azure Batch pool nodes run Windows, false otherwise.
  @return the configuration module object.