// Add Project types
List<ProjectType> projectTypes = new ArrayList<ProjectType>();
for (ExportedInstance<ProjectType> instance : registry.getExportedInstances(ProjectType.class))
{
ProjectType projectType = instance.get();
projectTypes.add(projectType);
type.setDefaultValue(projectType);
}
type.setValueChoices(projectTypes);
builder.add(named).add(topLevelPackage).add(targetLocation).add(overwrite).add(type);