Use JavaConverters instead of JavaConversions.