List<? extends DesignDocument> designDocuments = DesignDocuments.createDesignDocuments( resource );
if ( designDocuments.isEmpty( ) ) {
return;
}
DesignDocumentsUpdater updater = new DesignDocumentsUpdater( couchDatabase );
updater.update( designDocuments );
} catch ( CanceledException ignore ) {
}
}