public void validateOnlyOneOfEDDOrDOBIsPresent(String... args) { if (!ValidationUtils.assertNotMoreThanOnePresent(args)) errors.add( "Invalid request. Only one of expected date of delivery or date of birth should be present"); }