public static ValidationException deserializeValidationException(
String serializedValidationException) throws IncorrectSerializationFormatException {
if (!serializedValidationException.startsWith("VE_SERIALIZE_"))
throw new IncorrectSerializationFormatException("Wrong serialization format. Must begin with: VE_SERIALIZE_");
ValidationException ex = new ValidationException();
String ivs[] = serializedValidationException.split(":_\\[");
if(ivs == null || ivs.length == 0)
throw new IncorrectSerializationFormatException("Wrong serialization format. Expected delimiter: :_[");
for(int i=1; i<ivs.length; i++) {
String ivi[] = ivs[i].split("_,_");
if(ivi == null || ivi.length != 2)
throw new IncorrectSerializationFormatException("Wrong serialization format. Expected delimiter: _,_");
InvalidValueSerializable iv = new InvalidValueSerializable();
iv.setPropertyName(ivi[0]);
iv.setMessage(ivi[1].substring(0, ivi[1].length()-2));
ex.getInvalidValues().add(iv);