if (renderer != null) {
renderer.renderMenu(attributes);
} else {
Pane pane = attributes.getPane();
IteratorPane iterator = null;
// Initialise the iterator and separator. If the pane is an
// iterator pane which iterates in the correct direction then
// use the iteration to layout the menu items, else a separator
// is needed.