class DeploymentConfigScale {
  public static void main(String[] args) {<FILL_FUNCTION_BODY>}

}

    if (args.length < 2) {
      System.err.println("Usage nameOfDC replicas");
      return;
    }
    String name = args[0];
    String replicaText = args[1];
    int replicas;
    try {
      replicas = Integer.parseInt(replicaText);
    } catch (NumberFormatException e) {
      System.out.println("Could not parse integer " + replicaText + " due to: " + e);
      return;
    }
    try (OpenShiftClient client = new KubernetesClientBuilder().build().adapt(OpenShiftClient.class)) {
      Integer oldReplicas = 0;
      if (!client.supportsOpenShiftAPIGroup(OpenShiftAPIGroups.APPS)) {
        System.out.println("WARNING this cluster does not support the API Group " + OpenShiftAPIGroups.APPS);
        return;
      }
      DeployableScalableResource<DeploymentConfig> resource = client.deploymentConfigs().withName(name);
      DeploymentConfig deploymentConfig = resource.get();
      if (deploymentConfig == null) {
        System.out.println("Could not find a DeploymentConfig for name: " + name);
        return;
      }
      try {
        DeploymentConfigSpec spec = deploymentConfig.getSpec();
        oldReplicas = spec.getReplicas();
        spec.setReplicas(replicas);
        DeploymentConfig updated = resource.patch(deploymentConfig);
        System.out.println("Updated the DeploymentConfig " + name + " version: " + deploymentConfig.getApiVersion()
            + " with replicas: " + replicas + " to resourceVersion: " + updated.getMetadata().getResourceVersion());
      } catch (Exception e) {
        System.out.println("Failed to update the DeploymentConfig " + name + " with replicas: " + replicas);
        e.printStackTrace();
      }

      // now lets find the DC via list
      DeploymentConfigList list = Objects.requireNonNull(client.deploymentConfigs().list(),
          "No DeploymentConfigList returned");
      List<DeploymentConfig> items = Objects.requireNonNull(list.getItems(),
          "No DeploymentConfigList.getItems() returned");

      DeploymentConfig found = null;
      for (DeploymentConfig item : items) {
        if (name.equals(item.getMetadata().getName())) {
          found = item;
          break;
        }
      }
      Objects.requireNonNull(found, "Could not find DeploymentConfig in list.getItems() for name: " + name);
      found.getSpec().setReplicas(oldReplicas);

      try {
        DeploymentConfig updated = resource.patch(found);
        System.out.println("Updated the list.item DeploymentConfig " + name + " version: " + found.getApiVersion()
            + " with replicas: " + oldReplicas + " to resourceVersion: " + updated.getMetadata().getResourceVersion());
      } catch (Exception e) {
        System.out.println("Failed to update the list.item DeploymentConfig " + name + " with replicas: " + oldReplicas);
        e.printStackTrace();
      }

    } catch (KubernetesClientException e) {
      System.out.println("Failed: " + e);
      e.printStackTrace();
    }
  
<no_super_class>