code: public Set<Failure> validateArchive(List<Validate> archiveValidationObjs, Set<Failure> failures)
     {
        // Archive validation
        if (!archiveValidation)
        {
           return null;
        }
  
        for (Validate validate : archiveValidationObjs)
        {
           if (!(validate instanceof Validate))
              return null;
        }
  
        org.ironjacamar.validator.Validator validator = new org.ironjacamar.validator.Validator();
        List<Failure> partialFailures = validator.validate(archiveValidationObjs);
  
        if (partialFailures != null)
        {
           if (failures == null)
           {
              failures = new HashSet<>();
           }
           failures.addAll(partialFailures);
        }
  
        return failures;
     }
docs: validate archive
  
  @param archiveValidationObjs archiveValidation archiveValidation classes and/or to validate.
  @param failures failures failures original list of failures
  @return The list of failures gotten with all new failures added. Null in case of no failures
  or if validation is not run according to archiveValidation Setting. It returns null also if
  the concrete implementation of this class set validateClasses instance variable to flase and the list of
  archiveValidation contains one or more instance of {@link ValidateClass} type