public LayerModelDto getLayerModel() {
   layerModel.setActive(active.getValueAsBoolean());
   layerModel.setDefaultVisible(visible.getValueAsBoolean());
   layerModel.setName(name.getValueAsString());
   layerModel.setPublic(publicLayer.getValueAsBoolean());
   return layerModel;
 }
 public void setLayerModel(LayerModelDto model) {
   this.layerModel = model;
   name.setValue(model.getName());
   publicLayer.setValue(model.isPublic());
   active.setValue(model.isActive());
   visible.setValue(model.isDefaultVisible());
 }