public CommandRunnerProgressHelper(AdminCommand command, String name, Job commandInstance, ProgressStatus clientProgressStatus) {
progressAnnotation = command.getClass().getAnnotation(Progress.class);
if (progressAnnotation != null) {
if (progressAnnotation.name() == null || progressAnnotation.name().isEmpty()) {
commandProgress = new CommandProgressImpl(name, createIdForCommandProgress(commandInstance));
} else {
commandProgress = new CommandProgressImpl(progressAnnotation.name(), createIdForCommandProgress(commandInstance));
}
connectWithClientProgressStatus(commandInstance, clientProgressStatus);
commandInstance.setCommandProgress(commandProgress);
}
}