convert cassandra sample repository to new session obj