/**
     * This thingy is crazy !! upgrading or improvements are forbidden ! Coded to
     * Ce truc est legacy de ouf !! alors on arrête les conneries et plus de nouveaux dev dessus !
     *
     * @param spec
     * @param artifactName
     * @param groupId
     * @param artifactVersion
     * @param implemName
     * @return
     * @throws Exception
     */
@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);
}
@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);
}