} else if (WebLibraryUrls.isViewUrl(uri)) {
rep = getViewer(cookies, uri, login);
} else if (WebLibraryUrls.LOGOUT_URL.equals(uri)) {
session.getCookies().delete("cookie");
cookies.remove("cookie");
rep = loginPage(login(false, false), uri);
} else if (WebLibraryUrls.isViewUrl(uri)) {
rep = getViewer(cookies, uri, login);
} else if (WebLibraryUrls.LOGOUT_URL.equals(uri)) {
session.getCookies().delete("cookie");
cookies.remove("cookie");
rep = loginPage(login(false, false), uri);