Or the commented code, where we just add translator to policy.
This is a better / easier way, but I need to check if this is already available in AS5.1.
This is already available in 2.0.5:
* http://anonsvn.jboss.org/repos/jbossas/projects/jboss-cl/tags/2.0.5.GA/classloader/src/main/java/org/jboss/classloader/spi/base/BaseClassLoaderPolicy.java