implementationClassPath, localAddress, classPathRegistry);
} else {
workerFactory = new ApplicationClassesInIsolatedClassLoaderWorkerFactory(id, displayName, this,
implementationClassPath, localAddress, classPathRegistry);
}
Callable<?> workerMain = workerFactory.create();
getJavaCommand().classpath(workerFactory.getSystemClasspath());
// Build configuration for GradleWorkerMain
byte[] config = GUtil.serialize(workerMain);