class IbanValidator {

    public void validate(String iban, @NotNull MessageError messageError) {
        if (ibanValidationEnabled != null && BooleanUtils.isNotTrue(ibanValidationEnabled)) {
            log.info("IBAN validation is disabled.");
            return;
        }
        if (StringUtils.isNotBlank(iban) && !isValidIban(iban)) {
            errorBuildingService.enrichMessageError(messageError, TppMessageInformation.of(FORMAT_ERROR_INVALID_FIELD, "IBAN"));
        }
    }

}