In the User Manual section 7.1, we see several sample code snippets such as this one:
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); try { // Invoke persistence operations here } finally { jbpmContext.close(); }
Apologies, I just realized JbpmConfiguration is a factory:
JbpmConfiguration.getInstance()