// Get the LayoutDefinition and begin rendering
TemplateComponent tempComp = (TemplateComponent) component;
LayoutDefinition def = tempComp.getLayoutDefinition(context);
// The following "encode" method does all the rendering
def.encode(context, (UIComponent) tempComp);
}
/**
* <p> Decode any new state of the specified UIComponent from the request
* contained in the specified FacesContext, and store that state on