protected void beforeCommit() throws Exception {
// @todo allow for enrollment during pre-commit
ArrayList toFlush = new ArrayList(associatedContexts.values());
for (Iterator i = toFlush.iterator(); i.hasNext();) {
InstanceContext context = (InstanceContext) i.next();
context.beforeCommit();
}
}
protected void afterCommit(boolean status) throws Exception {
// @todo allow for enrollment during pre-commit