Establishing a session
An application must establish a session before it can request to perform business processes.
To establish a session, the client code must do the following:
Retrieve an instance of CSClient from the context hierarchy.
Register interest in the CSStatusChangedEvent.
Establish a session on the server by invoking an establishSession method.
Handle any events fired by the CSClient service in the dispatchEvent method.