// access a singleton instance by using getInstance()
// only one session can be active, so check this.
if (!SessionManager.getInstance().isSessionCreated(project))
{
// create a new session.
SessionManager.getInstance().createSession(project, "Edit");
}