Wow, that reminds me of the classloader magic Eclipse/OSGi does so that plugins that depend on different versions of the same library can work together in the same JVM.
Refinements mean things like method lookup are sensitive to the context and become much more fun.