this may select the wrong value in the case where RP is asking for 2 attributes of the same type but different values (e.g. mailing_address and shipping_address)