Hey Thomas,
Thank you for your response. As I am trying to implement the solution, one more question comes to mind.
Within the procedure, which is now running as _SYS_REPO, we might need to make conditional logic depending on the application privilege assigned to the user who invoked the procedure. How would I do that?
This is something similar to what I am able to do in XSJS by using $.session.(has|assert)AppPrivilege().
That way I can implement role specific business logic control associated with application privileges assigned to the user.
thanks,
Nitin