class ListDeploymentConfigs {

  private static final Logger logger = LoggerFactory.getLogger(ListDeploymentConfigs.class);

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

}

    try (OpenShiftClient client = new KubernetesClientBuilder().build().adapt(OpenShiftClient.class)) {
      if (!client.supportsOpenShiftAPIGroup(OpenShiftAPIGroups.APPS)) {
        logger.warn("This cluster does not support the API Group {}", OpenShiftAPIGroups.APPS);
        return;
      }
      DeploymentConfigList list = client.deploymentConfigs().list();
      if (list == null) {
        logger.error("No list returned!");
        return;
      }
      List<DeploymentConfig> items = list.getItems();
      for (DeploymentConfig item : items) {
        logger.info("DeploymentConfig {} has version: {}", item.getMetadata().getName(), item.getApiVersion());
      }

      if (!items.isEmpty()) {
        DeploymentConfig deploymentConfig = items.get(0);
        String name = deploymentConfig.getMetadata().getName();
        deploymentConfig = client.deploymentConfigs().withName(name).get();
        if (deploymentConfig == null) {
          logger.error("No DeploymentConfig found for name {}", name);
          return;
        }
        logger.info("get() DeploymentConfig {} has version: {}", name, deploymentConfig.getApiVersion());
      }
    } catch (KubernetesClientException e) {
      logger.error("Failed: {}", e.getMessage(), e);
    }
  
<no_super_class>