// in order to prevent events from firing during the relocation process.
for (UIComponent uiComponentResource : resourcesForRelocatingToBody) {
uiComponentResource.getAttributes().put(ORIGINAL_TARGET, StringPool.HEAD);
uiComponentResource.getAttributes().put(ADDED, Boolean.TRUE);
uiViewRoot.addComponentResource(facesContext, uiComponentResource, StringPool.BODY);
if (logger.isDebugEnabled()) {
ComponentResource componentResource = componentResourceFactory.getComponentResource(
uiComponentResource);