) throws Exception {
UpdateSpecifier result = new UpdateSpecifier();
// Select digest computer
DigestComputer dc = new DigestComputerSha1();
// Verify main document
if( schedule == DocumentUpdateProcess.Schedule.UPDATE_FORCED ){
result.setDocumentModified(true);
} else if( null == targetDoc ) {
// Document creation
result.setDocumentModified(true);
} else {
String sourceDigest = documentDigest.getDocDigest();
String targetDigest = dc.computeDigestFromJsonObject(targetDoc);
if( false == sourceDigest.equals(targetDigest) ){
result.setDocumentModified(true);
}
}