static public void updateDesignDocument(CouchDb couchDb) throws Exception {
try {
// Get document from resources
FSEntryResource resourceFile = FSEntryResource.create(UserDesignDocument.class.getClassLoader(), "userDesignDocument");
Document doc = DocumentFile.createDocument(resourceFile, resourceFile);
// Get current version of document
int diskVersion = 0;
{