It's not IDENTITY_HINT but only IDENTITY here. IDENTITY_HINT is not handled in any ways.
I would rather have a different way of configuring the communication layer. A way which would not require modifiying the er-coap application. Maybe more like a "disable udp" communication layer thing. And overwrite with something else.