code: private void updateData(List<UDeployApplication> uDeployApplications) {
          for (UDeployApplication application : uDeployApplications) {
              List<EnvironmentComponent> compList = new ArrayList<>();
              List<EnvironmentStatus> statusList = new ArrayList<>();
              long startApp = System.currentTimeMillis();
  
              for (Environment environment : uDeployClient
                      .getEnvironments(application)) {
  
                  List<UDeployEnvResCompData> combinedDataList = uDeployClient
                          .getEnvironmentResourceStatusData(application,
                                  environment);
  
                  compList.addAll(getEnvironmentComponent(combinedDataList, environment, application));
                  statusList.addAll(getEnvironmentStatus(combinedDataList));
              }
              if (!compList.isEmpty()) {
                  List<EnvironmentComponent> existingComponents = envComponentRepository
                          .findByCollectorItemId(application.getId());
                  envComponentRepository.delete(existingComponents);
                  envComponentRepository.save(compList);
              }
              if (!statusList.isEmpty()) {
                  List<EnvironmentStatus> existingStatuses = environmentStatusRepository
                          .findByCollectorItemId(application.getId());
                  environmentStatusRepository.delete(existingStatuses);
                  environmentStatusRepository.save(statusList);
              }
  
              log(" " + application.getApplicationName(), startApp);
          }
      }
docs: For each {@link UDeployApplication}, update the current
  {@link EnvironmentComponent}s and {@link EnvironmentStatus}.
  
  @param uDeployApplications list of {@link UDeployApplication}s