Interesting idea. It might not be serializable but the onus is on the custom constraint validator implementation.