code: private void addNewApplications(List<XLDeployApplication> applications,
                                      XLDeployCollector collector) {
          long start = System.currentTimeMillis();
          int count = 0;
  
          log("All apps", start, applications.size());
          for (XLDeployApplication application : applications) {
          	XLDeployApplication existing = findExistingApplication(collector, application);
  
          	String niceName = getNiceName(application, collector);
              if (existing == null) {
                  application.setCollectorId(collector.getId());
                  application.setEnabled(false);
                  application.setDescription(application.getApplicationName());
                  if (StringUtils.isNotEmpty(niceName)) {
                  	application.setNiceName(niceName);
                  }
                  try {
                      xlDeployApplicationRepository.save(application);
                  } catch (org.springframework.dao.DuplicateKeyException ce) {
                      log("Duplicates items not allowed", 0);
  
                  }
                  count++;
              } else if (StringUtils.isEmpty(existing.getNiceName()) && StringUtils.isNotEmpty(niceName)) {
  				existing.setNiceName(niceName);
                  xlDeployApplicationRepository.save(existing);
              }
          }
          
          log("New apps", start, count);
      }
docs: Add any new {@link XLDeployApplication}s.
  
  @param applications list of {@link XLDeployApplication}s
  @param collector    the {@link XLDeployCollector}