Match.toMap for get matches in java map.