add CodeGenerator for semi-automatic transaction code generation