log.error("Original error " + request.getAttribute(SlingConstants.ERROR_EXCEPTION_TYPE),
(Throwable) request.getAttribute(SlingConstants.ERROR_EXCEPTION));
}
}
String getWorkspaceName(SlingHttpServletRequest request) {
<BUG>return request.getResourceResolver().adaptTo(Session.class).getWorkspace().getName();
}</BUG>
private WorkspaceResourceResolver getScriptResolver(String wspName) {
<BUG>if (wspName.equals(defaultScriptWorkspaceName)) {
</BUG>
return defaultScriptResolver;

log.error("Original error " + request.getAttribute(SlingConstants.ERROR_EXCEPTION_TYPE),
(Throwable) request.getAttribute(SlingConstants.ERROR_EXCEPTION));
}
}
String getWorkspaceName(SlingHttpServletRequest request) {
return WorkspaceResourceResolver.getWorkspaceName(request.getResourceResolver());
}
private WorkspaceResourceResolver getScriptResolver(String wspName) {
if (wspName == null || wspName.equals(defaultScriptResolver.getWorkspaceName())) {
