class Router implements ApplicationListener<ContextRefreshedEvent> {

    public void reroute(final WilmaHttpRequest request) {
        if (routingService.redirectRequestToStub(request)) {
            try {
                request.setUri(getURI());
            } catch (URISyntaxException e) {
                logger.error(e.getMessage());
            }
        }
    }

}