Stream functionality backported to Java 7 and older.