private void processBindingConfigsFromModel(String modelName) {
logger.debug("Processing binding configs for items from model '{}'", modelName);
if (modelRepository != null) {
ItemModel model = (ItemModel) modelRepository.getModel(modelName);
if (model == null) {
return;
}
// clear the old binding configuration
for (BindingConfigReader reader : bindingConfigReaders.values()) {
reader.removeConfigurations(modelName);
}
// create items and read new binding configuration
for (ModelItem modelItem : model.getItems()) {
Item item = createItemFromModelItem(modelItem);
if (item != null) {
internalDispatchBindings(modelName, item, modelItem.getBindings());
}
}