restore marshalling methods used by jbpm