ViewDeclarationLanguage vdl = facesContext.getApplication().
getViewHandler().getViewDeclarationLanguage(
facesContext, facesContext.getViewRoot().getViewId());
Map<String, Object> attributes = new HashMap<String, Object>();
UIComponent cc = vdl.createComponent(facesContext,
"http://java.sun.com/jsf/composite/testComposite",
"dynComp_4", attributes);
UIOutput text = (UIOutput) facesContext.getApplication().
createComponent(UIOutput.COMPONENT_TYPE);
text.setValue("Dynamically added header");