newSeparator.setSkin("header");
metadata = newSeparator.getMetadata();
metadata.addField(Locale.FRENCH, "text", "-- [fr] Folder Menu --");
metadata.addField(Locale.FRENCH, "title", "[fr] Rollover: Folder Menu");
newMenu.getMenuElements().add(newSeparator);
MenuOptionsDefinition newOptions0 = folder.newMenuOptionsDefinition();
newOptions0.setOptions("/*.psml");
newOptions0.setRegexp(true);
newOptions0.setSkin("flash");
newMenu.getMenuElements().add(newOptions0);
MenuOptionsDefinition newOptions1 = folder.newMenuOptionsDefinition();
newOptions1.setOptions("/folder0");
newOptions1.setProfile("role-fallback");
newOptions1.setOrder("/folder*");
newOptions1.setDepth(1);
newOptions1.setPaths(true);
newMenu.getMenuElements().add(newOptions1);
MenuDefinition newNestedMenu = folder.newMenuDefinition();
newNestedMenu.setOptions("/*/");
newNestedMenu.setRegexp(true);
newNestedMenu.setDepth(2);