I have an XPage that runs in the browser and in the Notes client. In the client I want to talk to the Java client UI. So I built an Extlib that encapsulated the calls. And I built one with the same signature for the web.
How can I make the app depend on one or the other based on running in the client or on the server?