// check if checked out
if (!internalIsCheckedOut()) {
String msg = "Unable to finish merge. Node is checked-in: " + safeGetJCRPath();
log.error(msg);
throw new VersionException(msg);
}
// check if version is in mergeFailed list
Set failed = internalGetMergeFailed();
if (!failed.remove(version.getUUID())) {
String msg = "Unable to finish merge. Specified version is not in jcr:mergeFailed property: " + safeGetJCRPath();
log.error(msg);
throw new VersionException(msg);
}
// remove version from mergeFailed list
internalSetMergeFailed(failed);