afterCommit shouldn't use getResource