private static final Logger log = LoggerFactory.getLogger(JavaAutoUpdater.class);
private static ScheduledFuture<?> processMonitorHandle;
private static ScheduledFuture<?> updaterHandle;
private final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();
private final ConfigServiceClient configServiceClient;
<BUG>private final ApplicationProcess processHolder;
private final String artifactId;</BUG>
private final String clientName;
public JavaAutoUpdater(ConfigServiceClient configServiceClient, String artifactId, String workingDirectory, String clientName) {
this.configServiceClient = configServiceClient;

private static final Logger log = LoggerFactory.getLogger(JavaAutoUpdater.class);
private static ScheduledFuture<?> processMonitorHandle;
private static ScheduledFuture<?> updaterHandle;
private final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();
private final ConfigServiceClient configServiceClient;
private final ApplicationProcess processHolder;
private final DuplicateProcessHandler duplicateProcessHandler;
private final String artifactId;
private final String clientName;
public JavaAutoUpdater(ConfigServiceClient configServiceClient, String artifactId, String workingDirectory, String clientName) {
this.configServiceClient = configServiceClient;
