public DateSourceCouchWithCluster(CouchDesignDocument atlasDesignDocument) throws Exception {
this.atlasDesignDocument = atlasDesignDocument;
try {
CouchIntervalClusterTreeFactory factory = new CouchIntervalClusterTreeFactory();
clusterTree = factory.createClusterTree(atlasDesignDocument);
} catch(Exception e) {
logger.error("Unable to create a date cluster tree",e);
throw new Exception("Unable to create a date cluster tree",e);
}
}