Use of EnumMaps instead of HashMaps for enums.