}
}
private static void createFeatures(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
for(IFeature ofeature: model.getFeatures()){
IFeature feature = persistenceManager.newInstance(IFeature.class);
feature.setName(ofeature.getName());
feature.setRequired(ofeature.isRequired());
widget.getFeatures().add(feature);
// now attach all parameters to this feature.
for(org.apache.wookie.w3c.IParam oparam : ofeature.getParameters()){
IParam param = persistenceManager.newInstance(IParam.class);
param.setName(oparam.getName());
param.setValue(oparam.getValue());
feature.getParameters().add(param);
}
}
}