public static < T > T get ( Future < T > future ) throws ExecutionException { try { return future . get ( ) ; } catch ( InterruptedException e ) { logger . log ( Level . SEVERE , "Re-throwing InterruptedException as ExecutionException" ) ; throw new ExecutionException ( e ) ; } }
helper to avoid having to catch ExecutionExceptions