}
@Override
public NavigationResult next(UINavigationContext context) throws Exception
{
ScaffoldProvider selectedProvider = provider.getValue();
UIContext uiContext = context.getUIContext();
Project project = getSelectedProject(uiContext);
Map<Object, Object> attributeMap = uiContext.getAttributeMap();
attributeMap.put(Project.class, project);
attributeMap.put(ScaffoldProvider.class, selectedProvider);
attributeMap.put(ScaffoldGenerationContext.class, populateGenerationContext(uiContext));
((AbstractFacet) selectedProvider).setFaceted(project);
// Get the step sequence from the selected scaffold provider
List<Class<? extends UICommand>> generationFlow = selectedProvider.getGenerationFlow();
// Add the execution logic step in the end so that the scaffold generation step is executed last after all other
// steps
generationFlow.add(ScaffoldExecuteGenerationStep.class);