LPS-51401

Hey Igor,

I wanted for you to take a look on this to see if there is a better solution. The issue is that a user calls an API via JSON WS, but since the ServiceContext cannot be modified, a NPE is thrown. The solution here is to throw an IllegalArgumentException instead, but I'm not sure if there's something different we could do on the API side of things to make this call work properly.

If you don't have time to review it, just let me know and I can forward it to someone else.

Thanks!