Session session = sessionLifeCycle.login(credentials, workspace);
SessionWrapper wrapper = new SessionWrapperImpl(sessionLifeCycle, session);
return domain.getSession(wrapper);
}
catch (RepositoryException e) {
throw new UndeclaredRepositoryException(e);
}
}