How to always use the same PersistenceManager within the same RPC request on Google App Engine
问题 Is there a way to ensure the same PersistenceManager instance is used throughout the different code parts executed in the context of the same RPC request? Having to manually handle out the persistence manager instance from function to function is quite a pain: for example: private void updateItem(ItemModel listItem) throws UserNotLoggedInException { PersistenceManager pm = PMF.get().getPersistenceManager(); if (isItemIsNew(pm, listItem)) { workOnItem(pm, listItem); } workSomeMoreOnItem(pm,