use JavaConverters instead of JavaConversions as recommended by @aloiscochard