@Override
    public void validate(ValidationHelper helper, Context context, String key, RequestBody t) {

        String reference = t.getRef();

        if (reference != null && !reference.isEmpty()) {
            ValidatorUtils.referenceValidatorHelper(reference, t, helper, context, key);
            return;
        }
        ValidatorUtils.validateRequiredField(t.getContent(), context, "content").ifPresent(helper::addValidationEvent);

    }
@ Override public void validate ( ValidationHelper helper , Context context , String key , RequestBody t ) { String reference = t . getRef ( ) ; if ( reference != null && ! reference . isEmpty ( ) ) { ValidatorUtils . referenceValidatorHelper ( reference , t , helper , context , key ) ; return ; } ValidatorUtils . validateRequiredField ( t . getContent ( ) , context , "content" ) . ifPresent ( helper :: addValidationEvent ) ; }
{@inheritDoc}