}
public static LayoutManager createAndInitLayout(
FacesContext facesContext, String componentType, String rendererType, UIComponent parent) {
LayoutManager layoutManager = (LayoutManager) CreateComponentUtils.createComponent(
facesContext, componentType, rendererType, facesContext.getViewRoot().createUniqueId());
if (layoutManager instanceof OnComponentCreated) {
((OnComponentCreated) layoutManager).onComponentCreated(facesContext, parent);
}
if (layoutManager instanceof OnComponentPopulated) {