class LocalhostRequestRouter implements ApplicationListener<ContextRefreshedEvent> {

    public void reroute(final WilmaHttpRequest request) {
        try {
            URI uri;
            uri = createUri();
            request.setUri(uri);
        } catch (URISyntaxException e) {
            logger.error(e.getMessage());
        }
    }

}