void () { myBuilder.setInheritedOptions(getSavedValue(INHERIT_GROUP_ID_KEY, true), getSavedValue(INHERIT_VERSION_KEY, true)); String archGroupId = getSavedValue(ARCHETYPE_GROUP_ID_KEY, null); String archArtifactId = getSavedValue(ARCHETYPE_ARTIFACT_ID_KEY, null); String archVersion = getSavedValue(ARCHETYPE_VERSION_KEY, null); if (archGroupId == null || archArtifactId == null || archVersion == null) { myBuilder.setArchetype(null); } else { myBuilder.setArchetype(new MavenArchetype(archGroupId, archArtifactId, archVersion, null, null)); } }