How to get the below highlighted piece of code working in our custom java connector, I believe this is used to store/display the errors eencountered while executing the capabilities.
Currently, I have implementated in the same way as described below.
But, It doesn't display the error msg on the UI while testing the connector and nor it stores the values in T_AV_AFX_Request_HISTORY table.