/*
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package com.mpalourdio.hello.controllers;

import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/forwarder")
public class ForwarderController {

    @GetMapping("/first")
    public String entryPoint() {
        return "forward:/forwarder/second";
    }

    @GetMapping(value = "/second", produces = MediaType.APPLICATION_JSON_VALUE)
    @ResponseBody
    public Map forwardedPoint() {
        final Map<String, Boolean> map = new HashMap<>();
        map.put("forwarded", true);

        return map;
    }
}

@@ -927,16 +927,90 @@
 ller %7B%0A%0A
+    private static final String END_POINT = %22forward:/forwarder/second%22;%0A%0A
     @Get
@@ -1079,35 +1079,17 @@
 urn 
-%22forward:/forwarder/second%22
+END_POINT
 ;%0A  

Extract content in constant