layouts.put(null, layout); //save root with null as key
cacheLayouts(layouts, layout);
LayoutFactory factory = service.getComponentManager().getLayoutFactory();
factory.prepareLayout(layout);
// store the new values in the service
if (newValidity != null) {
objects = new Object[] { layouts, newValidity };
service.setAttribute(serviceKey, objects);