Move classloader to BenchmarkContext.
Add some @Nullable annotations.