// // will be relocated, we need to assign an id from the current root.
// // otherwise a duplicate id exception could happen.
// component.setId(facesContext.getViewRoot().createUniqueId(facesContext, null));
// }
//}
Location location = (Location) component.getAttributes().get(CompositeComponentELUtils.LOCATION_KEY);
if (location != null)
{
UIComponent ccParent = CompositeComponentELUtils.getCompositeComponentBasedOnLocation(facesContext, location);
if (ccParent != null)
{