Iterator iter = commands.iterator();
while (iter.hasNext()) {
CliCommand c = (CliCommand) iter.next();
gbuilder.withOption(c.getCommand());
}
grpCommands = gbuilder.create();
} catch (Exception e) {
log.error("Error while building command group.", e);
throw new ExecutionException("Error while building command gorup.", e);
}
}