@Override
 public void validate(Metacard metacard) throws ValidationException {
   if (!checkMetacard(metacard.getTitle(), new ArrayList<>(Arrays.asList(validWords)))) {
     ValidationExceptionImpl validationException =
         new ValidationExceptionImpl(
             "Metacard title does not contain any of: " + Arrays.toString(validWords));
     validationException.setErrors(new ArrayList<String>(Arrays.asList("sampleError")));
     validationException.setWarnings(new ArrayList<String>(Arrays.asList("sampleWarnings")));
     throw validationException;
   }
 }