Streams and Java mode