BZ-1039618 Same methods for extra JAXB classes
BZ-1039682 - Using a whitelist regex uniformly for the deployment id
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.