}
private ScaffoldGenerationContext populateGenerationContext(UIContext context)
{
Map<Object, Object> attributeMap = context.getAttributeMap();
ScaffoldGenerationContext generationContext = (ScaffoldGenerationContext) attributeMap
.get(ScaffoldGenerationContext.class);
if (generationContext == null)
{
return new ScaffoldGenerationContext(webRoot.getValue(), overwrite.getValue(), null);
}
else
{
generationContext.setTargetDirectory(webRoot.getValue());
generationContext.setOverwrite(overwrite.getValue());
return generationContext;
}
}