code: private Deployment findMatchingDeployment(DeploymentTargetDescription target) {
          List<Deployment> matching = findMatchingDeployments(target);
          if (matching.size() == 0) {
              return null;
          }
          if (matching.size() == 1) {
              return matching.get(0);
          }
  
          // if multiple Deployment of different Type, we get the Archive Deployment
          return archiveDeployments(matching).get(0);
      }
docs: Validation, names except DEFAULT should be unique. See constructor