About this task
To migrate APIs, do the following changes:
- Use Context ctx=(Context)ContextFactory.createContext(name,
false) to create context, where false refers to local context.
- Change Context.reset() to ContextFactory.reset().
- Change Context.getRoot() to ContextFactory.getRoot().
- Change Context.getTIDForSession(s) to CSSessionHandler.getTIDForSession(string).
- Change Context.removeSession(sessionId) to CSSessionHandler.removeSession(sessionId).
- Change Context.getCurrentContextForSession(sessionId) to CSSessionHandler.getCurrentContextForSession(sessionId).
- Change Context.setTimeStampForSession() to CSSessionHandler.setTimeStampForSession().
- Change Context.setTypeForSession() to CSSessionHandler.setTypeForSession().
- Change Context.addSession() to CSSessionHandler.addSession().