Thank you for report.
Yes, script should reuse application scoped entryManger instance. This should work well:
```
from org.gluu.persist import PersistenceEntryManager
...
entryManager = CdiUtil.bean(PersistenceEntryManager)
```
In this case we should not destory it after call