changed implementation of context path retrieval to be independant of process definition if unnecessary