*/
public void doBuild(RunData data)
throws Exception
{
// Get the context needed by Velocity.
Context context = TurbineVelocity.getContext(data);
String screenName = data.getScreen();
log.debug("Loading Screen " + screenName);
// First, generate the screen and put it in the context so
// we can grab it the layout template.
ConcreteElement results =
ScreenLoader.getInstance().eval(data, screenName);
String returnValue = (results == null) ? "" : results.toString();
// variable for the screen in the layout template
context.put(TurbineConstants.SCREEN_PLACEHOLDER, returnValue);
// variable to reference the navigation screen in the layout template
context.put(TurbineConstants.NAVIGATION_PLACEHOLDER,
new TemplateNavigation(data));
// Grab the layout template set in the VelocityPage.
// If null, then use the default layout template
// (done by the TemplateInfo object)