}
String path = designDocument.getDesignDocumentPath();
WebResource resource = database.getDbRoot().path( path );
@Nullable Revision currentRevision = getRevision( resource );
if ( LOG.isLoggable( Level.FINE ) ) {
LOG.fine( "PUT: " + resource.toString() );
}
ClientResponse response = resource.put( ClientResponse.class, createJson( designDocument, currentRevision ) );