How to check whether appium session is already in progress or not?(JAVA)

how to check whether appium session is already in progress or not (Java)? if it is in progress how to reuse the same session once again?