// use specific client module to generate code
Set<FileInfo> targetFiles = new HashSet<FileInfo>();
try {
// generate types first
ClientModule clientModule = ModuleFactory.getModule(options.module);
clientModule.setErrorReceiver(xjcErrorReceiver);// enable reporting
clientModule.init();
Set<FileInfo> typeFiles = clientModule.generate(jaxbCodeGenModel, cgConfig);
// then generate ws client
WSClientModule wsClientModule = WSModuleFactory.getModule(options.module);
wsClientModule.setErrorReceiver(receiver);
wsClientModule.init();