BZ-1070739 - Remote REST rarely throws IllegalStateException: EntityManager is closed when load tested by multiple threads using PPI and HumanTask process

(cherry picked from commit 71250a8c63efb863474d440e19a1481f70af0ab8)