clearRequestCache();
log.warn("Couldn't reposition navigation to a valid ubication.");
}
protected void repositionSection() {
WorkspaceImpl workspace = doGetCurrentWorkspace();
Section[] pages = workspace.getAllRootSections();
// First search root sections in order
for (int i = 0; i < pages.length; i++) {
Section page = pages[i];
setCurrentSectionId(page.getDbid());
clearRequestCache();
if (isValidUbication()) return;
}
// Then, the rest of sections
pages = workspace.getAllSections();
for (int i = 0; i < pages.length; i++) {
Section page = pages[i];
if (!page.isRoot()) {
setCurrentSectionId(page.getId());
clearRequestCache();