There is a better way to do this, without a for.
Simply populate the map for each AttributeType.