+ // a client is scanning parent URLs.
+// if (workspace == null)
+// return null;
+
+ CmsSessionImpl cmsSession = WebCmsSessionImpl.getCmsSession(request);
+ if (log.isTraceEnabled()) {
+ log.trace("Get JCR session from " + cmsSession);
+ }
+ if (cmsSession == null)
+ throw new IllegalStateException("Cannot find a session for request " + request.getRequestURI());