} else if (runnable instanceof DominoNativeRunner) {
final ClassLoader loader = ((DominoNativeRunner) runnable).getClassLoader();
runnable = new TrustedRunnable(runnable, factoryAccessController_, securityManager_);
((TrustedRunnable) runnable).setClassLoader(loader);
} else if (runnable instanceof IDominoRunnable) {
DominoSessionType type = ((IDominoRunnable) runnable).getSessionType();
final ClassLoader loader = ((IDominoRunnable) runnable).getContextClassLoader();
if (type == DominoSessionType.NATIVE) {
DominoNativeRunner nativeRunner = new DominoNativeRunner(runnable, loader);
runnable = new TrustedRunnable(nativeRunner, factoryAccessController_, securityManager_);
((TrustedRunnable) runnable).setClassLoader(loader);
} else {
System.out.println("DEBUG: IDominoRunnable has session type " + type.name());
}
}
super.execute(runnable);
}