Add intelligence to code generation (in preparation to a maven mojo plugin)