for(ConfigElement ce : config.options) {
Option option = new OptionImpl(ce);
parser.addOption(Setters.create(parser, findMethodOrField(bean, ce.field, ce.method),bean), option);
}
for (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(Messages.METADATA_ERROR.format(), e);
}