extract interface on mongosession and mongosessionmanager to put some java doc there