if( false == couchDb.documentExists("_design/"+designDocName) ) {
creationRequired = true;
} else {
// Check if it is the right signature
JSONObject currentDesignDoc = couchDb.getDocument("_design/"+designDocName);
if( false == currentDesignDoc.containsKey(DESIGN_DOC_SIG_KEY) ) {
updateNeeded = true;
} else {
String currentSignature = currentDesignDoc.getString(DESIGN_DOC_SIG_KEY);
if( false == signature.equals(currentSignature) ) {
updateNeeded = true;