{
ManageableRepository repository = null;
try
{
repository = createRepositoryWithJBCorISPNQueryHandler();
RepositoryContainer repositoryContainer =
helper.getRepositoryContainer(container, repository.getConfiguration().getName());
repositoryContainersInMemory.put(repositoryContainer, null);
SessionImpl session =
(SessionImpl)repository.login(credentials, repository.getConfiguration().getSystemWorkspaceName());
session.logout();