// merge page and parent folder menu definition locators
// by name, (most specific page definitions are merged first
// since they override any folder definitions); note parent
// folder menu definitions include standard menu definition
// locator defaults
FolderProxy parentFolderProxy = FolderProxy.getFolderProxy(getParent());
DynamicPage dynamicPage = dynamicPageReference.getDynamicPage();
mergeMenuDefinitionLocators(dynamicPage.getMenuDefinitions(), dynamicPage, parentFolderProxy.getPath(), true);
mergeMenuDefinitionLocators(parentFolderProxy.getMenuDefinitionLocators());
}