convert scala list to java list