Issue #2197029 by dawehner, larowlan, ParisLiakos: Allow to inject dependencies into validation constraints