Using Janino's SourceClassLoader (rather than the SimpleCompiler ) along with a ResourceFinder that understands Alfresco would mean that we could treat the Product space in alfresco effectively as a package structure and freely import classes from it.
See Janino docs here:
http://www.janino.net/index.html