public void apply(FaceletContext ctx, UIComponent parent)
throws IOException
{
if (parent == null)
{
throw new TagException(this.tag, "Parent UIComponent was null");
}
if (! (parent instanceof UIViewRoot) )
{
throw new TagException(this.tag, "Parent UIComponent "+parent.getId()+" should be instance of UIViewRoot");
}
FaceletCompositionContext mctx = FaceletCompositionContext.getCurrentInstance(ctx);
if (mctx.isBuildingViewMetadata())
{
UIComponent metadataFacet = parent.getFacet(UIViewRoot.METADATA_FACET_NAME);