code: function createSessionState(responseData)
  {
    var currentRole             = responseData.finalRoleName;
    var currentWarehouse        = responseData.finalWarehouseName;
    var currentDatabaseProvider = responseData.databaseProvider;
    var currentDatabase         = responseData.finalDatabaseName;
    var currentSchema           = responseData.finalSchemaName;
  
    return {
      getCurrentRole: function()
      {
        return currentRole;
      },
      getCurrentWarehouse: function()
      {
        return currentWarehouse;
      },
      getCurrentDatabaseProvider: function()
      {
        return currentDatabaseProvider;
      },
      getCurrentDatabase: function()
      {
        return currentDatabase;
      },
      getCurrentSchema: function()
      {
        return currentSchema;
      }
    };
  }
docs: Creates a session state object from the values of the current role, current
  warehouse, etc., returned in the result response.
  
  @param responseData
  
  @returns {Object}