in src/main/java/org/apache/sling/jcr/oak/server/internal/TcclWrappingJackrabbitRepository.java [73:87]
public Session login(Credentials credentials, String workspaceName, Map<String, Object> attributes)
throws LoginException, NoSuchWorkspaceException, RepositoryException {
Thread thread = Thread.currentThread();
ClassLoader oldClassLoader = thread.getContextClassLoader();
thread.setContextClassLoader(Oak.class.getClassLoader());
try {
Session session = wrapped.login(credentials, workspaceName,attributes);
return new TcclWrappingJackrabbitSession((JackrabbitSession) session);
} finally {
thread.setContextClassLoader(oldClassLoader);
}
}