throw new RepositoryException("Duplicate attribute '" + REFRESH_INTERVAL + "'.");
}
RefreshStrategy refreshStrategy = createRefreshStrategy(refreshInterval);
ContentSession contentSession = contentRepository.login(credentials, workspaceName);
SessionDelegate sessionDelegate = new SessionDelegate(contentSession, refreshStrategy);
SessionContext context = createSessionContext(
securityProvider, createAttributes(refreshInterval), sessionDelegate);
return context.getSession();
} catch (LoginException e) {
throw new javax.jcr.LoginException(e.getMessage(), e);