private ProgressStatus progressForMainCommand = null;
private ProgressStatusMirroringImpl progressMirroring = null;
public CommandRunnerProgressHelper(AdminCommand command, String name, Job job, ProgressStatus clientProgressStatus) {
if (command instanceof GenericCrudCommand) {
GenericCrudCommand gcc = (GenericCrudCommand) command;
Class decorator = gcc.getDecoratorClass();
if (decorator != null) {
progressAnnotation = (Progress) decorator.getAnnotation(Progress.class);
}
} else if (command instanceof ProgressProvider) {
progressAnnotation = ((ProgressProvider) command).getProgress();