restore marshalling methods used by jbpm
(cherry picked from commit 9a1bf179dca4b84152ce5f16cee1b762ab7ea1cc)