class CDAR2Validator implements Validator<ClinicalDocument, Map<Object, Object>> {

    @Override
    public void validate(ClinicalDocument doc, Map<Object, Object> context) {
        boolean isValid = CDAUtil.validate(doc, retrieveValidationHandler(context));
        if (! isValid) {
            throw new ValidationException("Clinical Document not valid!");
        }
    }

}