final boolean equals = (sourceVersion == null)
? targetVersion == -1
: sourceVersion.equals(targetVersion);
if (!equals) {
throw new ConcurrentUpdateException(
"Versions of source and target do not match for dto "
+ source + ", source is " + sourceVersion
+ ", target is " + targetVersion + ".");
}
}