String pathInfo = req.getPathInfo() == null ? "" : req.getPathInfo(); //$NON-NLS-1$
if (pathInfo.startsWith("/form")) { //$NON-NLS-1$
try {
LoginResult authResult = LdapAuthenticationService.performAuthentication(req, resp);
if (authResult == LoginResult.OK) {
// redirection from
// FormAuthenticationService.setNotAuthenticated
String versionString = req.getHeader("Orion-Version"); //$NON-NLS-1$
Version version = versionString == null ? null : new Version(versionString);