for(Config.ConfigElement ce : config.options) {
Option option = new OptionImpl(ce);
parser.addOption(Setters.create(parser, findMethodOrField(bean, ce.field, ce.method),bean), option);
}
for (Config.ConfigElement ce : config.arguments) {
Argument argument = new ArgumentImpl(ce);
parser.addArgument(Setters.create(parser, findMethodOrField(bean, ce.field, ce.method),bean), argument);
}
} catch (Exception e) {
throw new RuntimeException("Problems while reading the args-confguration.", e);
}