Reservoir sampling didn't work when invoked from a different JAR - because of setJarByClass() ... - solved.