Changed to use the shared libraries.
Changed to use the utility methods to read/write session id.
Arranged the import order by Eclipse.