Changed the way sub-process instance and process definition are loaded