this.flushed = false;
}
public Object execute(PrevaylerCallback callback) {
if (this.flushed) {
throw new PrevaylerTransactionException("Error: session already flushed and closed.");
} else {
// Enqueue a copy of the callback for later execution through prevayler at commit time:
PrevaylerCallback copiedCallback = (PrevaylerCallback) this.deepCopy(callback);
this.executionQueue.add(copiedCallback);
// Locally execute the callback: