if( null == currentDoc ) {
// New document. Create.
JSONObject originalDoc = SubmissionUtils.getApprovedDocumentFromSubmission(submissionDoc);
CouchDb targetDb = documentDbDesignDocument.getDatabase();
targetDb.createDocument(originalDoc);
CouchDb submissionDb = submissionDbDesignDocument.getDatabase();
submissionDoc.getJSONObject("nunaliit_submission")
.put("state", "complete");
submissionDb.updateDocument(submissionDoc);