6.1.2.1.13. How to open and close a session properly to avoid memory leaks?
Session session = repository.login(credentials);

try
{
// here your code
}
finally
{
session.logout();
}
Copyright ©2012. All rights reserved. eXo Platform SAS