The controller finalizes the Entity Manager.
The context can clear the entity manager.
Merge branch 'hotfix/jni-memory-leak' into develop