public void flush(Prevayler prevayler) {
if (this.flushed) {
throw new PrevaylerTransactionException("Error: session already flushed and closed.");
} else {
CompositeTransactionCommand command = new CompositeTransactionCommand(this.executionQueue);
prevayler.execute(command);
}
}