BZ-1039618 Same methods for extra JAXB classes
(cherry picked from commit c3353ca23d182919141da6f51ca0fdb9e5ea2120)
BZ-1038229 - JMS API is unable to load a class in the deployment with some requests

- Some of this code is also for BZ-1026402, since it seems like something
  changed with the classloader to break the fixes that were previously
  sufficient for it.
(cherry picked from commit b229a4a3218097920a95dfac31bcf48415b06cac)
changes for spring to use new persistence mechanism
adjustmenets for persistence refactoring of drools and jbpm