public void addSystemPropertyForToken(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag)
throws TransactionFailure, PropertyVetoException {
for (ConfigCustomizationToken token : tokens) {
if (!bag.containsProperty(token.getKey())) {
SystemProperty prop = bag.createChild(SystemProperty.class);
prop.setName(token.getKey());
prop.setDescription(token.getDescription());
prop.setValue(token.getDefaultValue());
bag.getSystemProperty().add(prop);
}
}
}