code: public static ConstraintViolationException instantiate(
        final SerializationStreamReader streamReader) throws SerializationException {
      final String message = streamReader.readString();
      @SuppressWarnings("unchecked")
      final Set<ConstraintViolation<?>> set = (Set<ConstraintViolation<?>>) streamReader.readObject();
      return new ConstraintViolationException(message, set);
    }
docs: instantiate constraint violation exception.
  
  @param streamReader serialization stream reader to read data from
  @return ConstraintViolationException
  @throws SerializationException if deserialization fails