// start walking the profile spec
profileInstance.start();
// start a thread to estimate the number of jobs, and
// update the progress monitor when it's done.
final ProfileSpecJobCounter counter = new ProfileSpecJobCounter(profileInstance.getProfileSpec());
final FutureTask<Long> countFuture = new FutureTask<Long>(counter) {
@Override
protected void done() {
if (!isCancelled()) {
try {