It'd be nice to have the hashmap automatically populated. This could be done ahead of time using code generation so there's no run time reflection.