Use select and map instead of pluck to make JRuby happy.