throw new IllegalStateException(e);
}
stdCouchDbInstance = new StdCouchDbInstance(httpClient);
db = new StdCouchDbConnector(dbName, stdCouchDbInstance);
db.createDatabaseIfNotExists();
designDocument = new DesignDocument("_design/channels");
addView(designDocument, Views.CHANNEL);
addView(designDocument, Views.UAID);
addView(designDocument, Views.TOKEN);
addView(designDocument, Views.UNACKS);
addView(designDocument, Views.SERVER);