Source:
<code>public synchronized void start(final StartContext context) throws StartException { ROOT_LOGGER.endpointStarting(name); try { SocketBinding socketBinding = getSocketBinding().getValue(); InetSocketAddress socketAddress = socketBinding.getSocketAddress(); configurationBuilder.ip(socketAddress.getAddress()); configurationBuilder.port(socketAddress.getPort()); <START> sniRouting.entrySet().stream().forEach(e -> { <END> HotRodServer hotRod = e.getValue().getHotRod().getValue(); SecurityRealm securityRealm = e.getValue().getSecurityRealm().getValue(); String sniHostName = e.getKey(); SniNettyRouteSource source = new SniNettyRouteSource(sniHostName, securityRealm.getSSLContext()); NettyHandlerRouteDestination destination = new NettyHandlerRouteDestination(hotRod.getQualifiedName(), hotRod.getInitializer()); configurationBuilder.routing().add(new Route<>(source, destination)); }); router = Optional.of(new MultiTenantRouter(configurationBuilder.build())); router.ifPresent(r -> r.start()); ROOT_LOGGER.endpointStarted(name, NetworkUtils.formatAddress(socketAddress)); } catch (Exception e) { throw ROOT_LOGGER.failedStart(e, name); } }</code><technical_language>call forEach map</technical_language>

Target:
public synchronized void start(final StartContext context) throws StartException { ROOT_LOGGER.endpointStarting(name); try { SocketBinding hotrodSocketBinding = getHotrodSocketBinding().getOptionalValue(); InetSocketAddress hotrodAddress = hotrodSocketBinding != null ? hotrodSocketBinding.getSocketAddress() : null; SocketBinding restSocketBinding = getRestSocketBinding().getOptionalValue(); InetSocketAddress restAddress = restSocketBinding != null ? restSocketBinding.getSocketAddress() : null; if (hotrodAddress != null) { HotRodRouterBuilder hotrodConfigurationBuilder = configurationBuilder.hotrod(); hotrodConfigurationBuilder.ip(hotrodAddress.getAddress()); hotrodConfigurationBuilder.port(hotrodAddress.getPort()); } if (restAddress != null) { configurationBuilder.rest().ip(restAddress.getAddress()); configurationBuilder.rest().port(restAddress.getPort()); } hotrodRouting.forEach((sniHostName, routing) -> { HotRodServer hotRod = routing.getHotRod().getValue(); SecurityRealm securityRealm = routing.getSecurityRealm().getValue(); SniNettyRouteSource source = new SniNettyRouteSource(sniHostName, securityRealm.getSSLContext()); NettyHandlerRouteDestination destination = new NettyHandlerRouteDestination(hotRod.getQualifiedName(), hotRod.getInitializer()); configurationBuilder.routing().add(new Route<>(source, destination)); }); restRouting.forEach((path, routing) -> { Server restResource = routing.getRest().getValue().getServer(); String name = routing.getName(); RestRouteSource source = new RestRouteSource(path); NettyRestServerRouteDestination destination = new NettyRestServerRouteDestination(name, restResource); configurationBuilder.routing().add(new Route<>(source, destination)); }); this.router = new MultiTenantRouter(configurationBuilder.build()); this.router.start(); ROOT_LOGGER.routerStarted(NetworkUtils.formatAddress(hotrodAddress), NetworkUtils.formatAddress(restAddress)); } catch (Exception e) { throw ROOT_LOGGER.failedStart(e, name); } }