protected String verifyWorkspace(String workspace) {
if (StringUtils.isEmpty(workspace)) {
workspace = DEFAULT_WORKSPACE;
} else {
if (!JCRContentUtils.isValidWorkspace(workspace)) {
throw new JahiaNotFoundException("Unknown workspace '" + workspace + "'");
}
}
return workspace;
}