Use Map instead of HashMap, get rid of extraneous imports, change JavaConversions to explicit calls with JavaConverters.