LoginContext loginContext = loginContextProvider.getLoginContext(credentials, workspaceName);
loginContext.login();
// TODO make configurable
AccessControlContext acContext = new AccessControlContextImpl();
return new ContentSessionImpl(loginContext, workspaceName, nodeStore, queryEngine, acContext);
}