final Set optionGroups = new HashSet();
for(final Iterator i = options1.getOptionGroups().iterator();i.hasNext();){
final OptionGroup optionGroup1 = (OptionGroup)i.next();
Group group = group(optionGroup1);
gbuilder.withOption(group);
optionGroups.add(optionGroup1);
}
for(final Iterator i = options1.getOptions().iterator();i.hasNext();){
final org.apache.commons.cli.Option option1 = (org.apache.commons.cli.Option)i.next();