inputStream = new BufferedInputStream(ParsingUtils.openInputStreamGZ(new ResourceLocator(sessionPath)));
boolean isUCSC = sessionPath.endsWith(".session") || sessionPath.endsWith(".session.txt");
final SessionReader sessionReader = isUCSC ?
new UCSCSessionReader(this) :
new IGVSessionReader(this);
sessionReader.loadSession(inputStream, session, sessionPath);
String searchText = locus == null ? session.getLocus() : locus;