Lager lager,
TimerManager timerManager)
throws Exception {
if (db == null) {
throw new WorkspaceException("db can not be null");
} else if (!db.isInitialized()) {
throw new WorkspaceException("DBAccountingPersistence not " +
"initialized");
}
if (lager == null) {
throw new IllegalArgumentException("lager may not be null");
}
if (timerManager == null) {
throw new IllegalArgumentException("timerManager may not be null");
}
if (writeDelayMilliseconds < MIN_WRITE_DELAY_MILLISECONDS) {
throw new WorkspaceException("write delay can not be less " +
"than " + MIN_WRITE_DELAY_MILLISECONDS + " ms");
}
final DelayedAccountingFileLogger fileLog =
new DelayedAccountingFileLogger(currentReservationsPath,