}
};
//if this is the first start we want to use the same scanner that was used at boot time
if (scanner == null) {
final PathManager pathManager = pathManagerValue.getValue();
final String pathName = pathManager.resolveRelativePathEntry(path, relativeTo);
File relativePath = null;
if (relativeTo != null) {
relativePath = new File(pathManager.getPathEntry(relativeTo).resolvePath());
callbackHandle = pathManager.registerCallback(pathName, PathManager.ReloadServerCallback.create(), PathManager.Event.UPDATED, PathManager.Event.REMOVED);
}
final FileSystemDeploymentService scanner = new FileSystemDeploymentService(relativeTo, new File(pathName),
relativePath, factory, scheduledExecutorValue.getValue());