User data source

Use the ExecutionContext to obtain applicable user data source (credentials) by navigating through InstanceConfig object.:

executionContext.getInstanceConfig().getDataSourceCredentials()

The DataSourceCredentials object returned by the getDataSourceCredentials method contains the selected data source based on the strategy set up for User credentials in Platform configuration. Hence, plugins will not make any logical decision pertaining to the right selection of the user data source.

Similarly, the getUnicaToken method called on InstanceConfig object returns a UnicaToken object containing the Unica Token required for invoking APIs of Unica applications.