Project p = Templates.getProject(wizard);
Sources s = ProjectUtils.getSources(p);
SourceGroup[] groups = s.getSourceGroups(Sources.TYPE_GENERIC);
WizardDescriptor.Panel customizedTargetChooser =
Templates.createSimpleTargetChooser(p, groups,
new LayoutDefinitionWizardPanel(wizard));
panels = new WizardDescriptor.Panel[]{
customizedTargetChooser
};