camunda/camunda-bpm-platform — pull request #117 by johnament (2014-10-24 23:48:06+00:00)
Title: perf - Cache the resolved process engine.

What you were already doing wasn't too bad. However it would have gone through your resolution logic 8 times. This will reduce the number of look ups that occur for the default process engine.