So ... Your approach sgtm with a comment about the...
# general
e
So ... Your approach sgtm with a comment about the hack going on - ie we need to ensure codegen comes before resolve and compile, which are the 2 bits looking for 'java' and 'scala' right now (...and idea/eclipse)