}
}
private static void createPreferences(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
for(IPreferenceEntity prefEntity : model.getPrefences()){
IPreferenceDefault preferenceDefault = persistenceManager.newInstance(IPreferenceDefault.class);
preferenceDefault.setPreference(prefEntity.getName());
preferenceDefault.setValue(prefEntity.getValue());
preferenceDefault.setReadOnly(prefEntity.isReadOnly());
widget.getPreferenceDefaults().add(preferenceDefault);
}
}