//
// http://stackoverflow.com/questions/18150961/scala-runtime-in-compiler-mirror-not-found-but-working-when-started-with-xboo
Settings settings = new Settings();
// http://www.scala-lang.org/old/node/8002
settings.classpath().value_$eq(classpath);
// Without this class loader setting, the REPL and the target process will
// see different instances of a static variable of the same class!
// http://stackoverflow.com/questions/5950025/multiple-instances-of-static-variables
settings.explicitParentLoader_$eq(Option.apply(cl));