if ( layout != null ) {
if ( layout.getId() != null ) {
layoutMap.put( layout.getId(), layout );
}
if ( layout instanceof CompositeLayout ) {
CompositeLayout cl = (CompositeLayout)layout;
Iterator i = cl.getItems().iterator();
while ( i.hasNext() ) {
Item current = (Item)i.next();
this.cacheLayouts( layoutMap, current.getLayout() );
}
}