// look for other CommandWrapper annotations
Annotation annotations[] = command.getClass().getAnnotations();
for (Annotation a : annotations) {
CommandWrapper cw = a.annotationType().getAnnotation(CommandWrapper.class);
if (cw != null) {
CommandWrapperImpl cwi = habitat.getService(cw.value());
wrappedCommand = cwi.createWrapper(a, model, wrappedCommand, report);
}
}
try {
wrappedCommand.execute(progressHelper.wrapContext4MainCommand(context));