reducing to a java HashMap