// d1 is the input from the message, d2 is from the policy
bool operator()(const Delegate* d1, const Delegate& d2) const {
if (!d1->getNameID()) {
// d1 is the input from the message, d2 is from the policy
bool operator()(const Delegate* d1, const Delegate& d2) const {
if (!d1->getNameID()) {