Note:  This precludes having multiple values for an attribute.  If entity switches over to this code, it will have to change.