String delegateClassName = runnableArgs.get("delegate.class.name");
type = TypeToken.of(programClassLoader.loadClass(delegateClassName));
((GuavaServiceWorker) worker).setDelegate((Service) factory.get(type).create());
}
int instanceId = context.getInstanceId();
worker.initialize(new BasicServiceWorkerContext(program, runId, instanceId, runnableName, programClassLoader,
cConfiguration, context.getSpecification().getConfigs(), datasets,
metricsCollectionService, datasetFramework,
transactionSystemClient,
discoveryServiceClient));
} catch (Exception e) {