Generating descriptors classes with codemodel