JVM fork modes and metaclass wizardry