Source:
public ProjectDescription convert(ProjectRequest request, InitializrMetadata metadata) { validate(request, metadata); String springBootVersion = getSpringBootVersion(request, metadata); List<Dependency> resolvedDependencies = getResolvedDependencies(request, springBootVersion, metadata); validateDependencyRange(springBootVersion, resolvedDependencies); ProjectDescription description = new ProjectDescription(); description.setApplicationName(getApplicationName(request, metadata)); description.setArtifactId(determineValue(request.getArtifactId(), () -> metadata.getArtifactId().getContent())); description.setBaseDirectory(request.getBaseDir()); description.setBuildSystem(getBuildSystem(request, metadata)); description.setDescription(determineValue(request.getDescription(), () -> metadata.getDescription().getContent())); description.setGroupId(determineValue(request.getGroupId(), () -> metadata.getGroupId().getContent())); description.setLanguage( Language.forId(request.getLanguage(), request.getJavaVersion())); description.setName( determineValue(request.getName(), () -> metadata.getName().getContent())); description.setPackageName(getPackageName(request, metadata)); description.setPackaging(Packaging.forId(request.getPackaging())); description.setPlatformVersion(Version.parse(springBootVersion)); description.setVersion(determineValue(request.getVersion(), () -> metadata.getVersion().getContent())); conventionCorrection(description); resolvedDependencies .forEach((dependency) -> description.addDependency(dependency.getId(), MetadataBuildItemMapper.toDependency(dependency))); return description; }

Target:
public ProjectDescription convert(ProjectRequest request, InitializrMetadata metadata) { validate(request, metadata); String springBootVersion = getSpringBootVersion(request, metadata); List<Dependency> resolvedDependencies = getResolvedDependencies(request, springBootVersion, metadata); validateDependencyRange(springBootVersion, resolvedDependencies); ProjectDescription description = new ProjectDescription(); description.setApplicationName(getApplicationName(request, metadata)); description.setArtifactId(determineValue(artificialIdCorrection(request.getArtifactId()), () -> metadata.getArtifactId().getContent())); description.setBaseDirectory(baseDirectoryCorrection(request.getBaseDir(), request.getArtifactId())); description.setBuildSystem(getBuildSystem(request, metadata)); description .setDescription(determineValue(request.getDescription(), () -> metadata.getDescription().getContent())); description.setGroupId( determineValue(groupIdCorrection(request.getGroupId()), () -> metadata.getGroupId().getContent())); description.setLanguage(Language.forId(request.getLanguage(), request.getJavaVersion())); description.setName(determineValue(request.getName(), () -> metadata.getName().getContent())); description.setPackageName(getPackageName(request, metadata)); description.setPackaging(Packaging.forId(request.getPackaging())); description.setPlatformVersion(Version.parse(springBootVersion)); description.setVersion(determineValue(request.getVersion(), () -> metadata.getVersion().getContent())); resolvedDependencies.forEach((dependency) -> description.addDependency(dependency.getId(), MetadataBuildItemMapper.toDependency(dependency))); return description; }