int i = 0;
while (i < args.size()) {
//Prepare the hgroup
String hgroup = args.get(i++);
int level = 0;
Hostgroup obj = null;
try {
obj = jgdi.getHostgroupWithAnswer(hgroup, answer);
printAnswers(answer);
} catch (JGDIException ex) {
err.println(ex.getMessage()); //TODO LP: Check if the message is a correct one, what about exitCode?