HttpServletRequest request = requestResponse.getRequest();
String pathToSelection = request.getContextPath()+ "/general/projectSelection/selection.jsf";
String path = request.getServletPath();
if ( ! path.contains("projectSelection"))
{
ProjectSpecificationData project = (ProjectSpecificationData) request.getSession().getAttribute("projectspecification");//TODO configure the name of the bean.
if (project == null)
result = pathToSelection;
else if ( project.getRootDirectoryPath() == null)
result = pathToSelection;
}
return result;
}