Added Generic in generated code.