class TppNotificationDataValidator implements BusinessValidator<TppNotificationData> {

    @Override
    public @NotNull Set<TppMessageInformation> buildWarningMessages(@NotNull TppNotificationData tppNotificationData) {
        if (CollectionUtils.isNotEmpty(tppNotificationData.getNotificationModes())
                && StringUtils.isNotBlank(tppNotificationData.getTppNotificationUri())) {

            return tppDomainValidator.buildWarningMessages(tppNotificationData.getTppNotificationUri());
        }

        return Collections.emptySet();
    }

}