The framework needs to provide a way for various libs to provide their own code generation hooks. e.g. XingFramework/xing-frontend-grunt#1