+ try {
+ lc.login();
+ } catch (LoginException e) {
+ // we force a runtime exception since Jackrabbit swallows LoginException
+ // and still create a session
+ throw new IllegalStateException("Login context " + loginContextName + " failed", e);
+ }