private static Response pick ( final Request req , final Iterable < Fork > forks ) throws IOException { for ( final Fork fork : forks ) { final Opt < Response > rsps = fork . route ( req ) ; if ( rsps . has ( ) ) { return rsps . get ( ) ; } } throw new HttpException ( HttpURLConnection . HTTP_NOT_FOUND ) ; }
Pick the right one .