@Deprecated
    public FileDataSource generatePythonImpl(File spec, String artifactName, String groupId, String artifactVersion, String implemName) throws Exception {
        Yaml yaml = new Yaml();
        LinkedHashMap swaggerFile =  yaml.load(FileUtils.openInputStream(spec));
        String groupIdApi = getPropInSwaggerFile(swaggerFile, "x-groupId");
        String artifactNameApi = getPropInSwaggerFile(swaggerFile, "x-artifactName");
        String artifactVersionApi = getPropInSwaggerFile(swaggerFile, "version");
        String groupName = groupId.substring(groupId.lastIndexOf('.') + 1);
        StringBuilder artifactIdSb = new StringBuilder().append(groupName).append("-").append(artifactNameApi).append("-");
        artifactIdSb.append(artifactName.replaceAll("-",""));
        CodegenConfigurator configurator = new CodegenConfigurator();
        String artifactId = artifactIdSb.toString();
        initializeConfigurator(spec, "KathraPython", artifactNameApi, groupIdApi, artifactVersion, "implem", artifactId, configurator);
        configurator.setArtifactVersionApi(artifactVersionApi);
        return getFileDataSource(spec, "implem", artifactIdSb, artifactId, configurator);
    }
@Deprecated
    public FileDataSource generatePythonImpl(File spec, String artifactName, String groupId, String artifactVersion, String implemName) throws Exception {
        Yaml yaml = new Yaml();
        LinkedHashMap swaggerFile =  yaml.load(FileUtils.openInputStream(spec));
        String groupIdApi = getPropInSwaggerFile(swaggerFile, "x-groupId");
        String artifactNameApi = getPropInSwaggerFile(swaggerFile, "x-artifactName");
        String artifactVersionApi = getPropInSwaggerFile(swaggerFile, "version");
        String groupName = groupId.substring(groupId.lastIndexOf('.') + 1);
        StringBuilder artifactIdSb = new StringBuilder().append(groupName).append("-").append(artifactNameApi).append("-");
        artifactIdSb.append(artifactName.replaceAll("-",""));
        CodegenConfigurator configurator = new CodegenConfigurator();
        String artifactId = artifactIdSb.toString();
        initializeConfigurator(spec, "KathraPython", artifactNameApi, groupIdApi, artifactVersion, "implem", artifactId, configurator);
        configurator.setArtifactVersionApi(artifactVersionApi);
        return getFileDataSource(spec, "implem", artifactIdSb, artifactId, configurator);
    }
@deprecated public filedatasource generatepythonimpl(file spec, string artifactname, string groupid, string artifactversion, string implemname) throws exception { yaml yaml = new yaml(); linkedhashmap swaggerfile = yaml.load(fileutils.openinputstream(spec)); string groupidapi = getpropinswaggerfile(swaggerfile, "x-groupid"); string artifactnameapi = getpropinswaggerfile(swaggerfile, "x-artifactname"); string artifactversionapi = getpropinswaggerfile(swaggerfile, "version"); string groupname = groupid.substring(groupid.lastindexof('.') + 1); stringbuilder artifactidsb = new stringbuilder().append(groupname).append("-").append(artifactnameapi).append("-"); artifactidsb.append(artifactname.replaceall("-","")); codegenconfigurator configurator = new codegenconfigurator(); string artifactid = artifactidsb.tostring(); initializeconfigurator(spec, "kathrapython", artifactnameapi, groupidapi, artifactversion, "implem", artifactid, configurator); configurator.setartifactversionapi(artifactversionapi); return getfiledatasource(spec, "implem", artifactidsb, artifactid, configurator); }