}
@Override
protected OpenJPAEntityManagerFactorySPI createEMF(Object... props) {
OpenJPAEntityManagerFactorySPI emf = super.createEMF(props);
emf.addLifecycleListener(new AbstractLifecycleListener() {
@Override
public void beforePersist(LifecycleEvent event) {
persistCount++;
}
}, null);