Classloading change its something to do only when running inside a domain. Can you move the classloading magic into a wrapper that its created only for domains?