remove extends
changed changeSession visibility to protected to use it in
elasticsearchadapter