closeService()
closeService() closes the session with the Key Manager and free the connection to the database.
public void closeService()
Note
All the threads should be detached using detachCurrentThread() before calling closeService(). Each TokenService() should be closed using closeService() else it will result in memory leak.