Fixes for jBPM on cleanup4x

Changes neccesary for jBPM.