class WorkspaceIdModifiedRequest extends HttpServletRequestWrapper {

    @Override
    public StringBuffer getRequestURL() {
        StringBuffer requestURL = super.getRequestURL();
        Matcher apiResourceMatcher = API_RESOURCE_PATTERN.matcher(requestURL);
        if (apiResourceMatcher.find()) {
            return requestURL.replace(apiResourceMatcher.start(), apiResourceMatcher.end(), replaceString);
        }
        return requestURL;
    }

    public  WorkspaceIdModifiedRequest(HttpServletRequest request, Long workspaceId);

}