Hi Anurag,
AS Java provides a set of API as well as SPML but it's up to the caller (NW Gateway).
Here I don't think the caller has implemented this.
This shall not be the answer you are looking for, so I'll just leave it to experts.
By the way, have you seen any case where an ABAP system uses a UME datasource?
BR, Tom