public LayerModelDto getLayerModel() {
   layerModel.setActive(active.getValueAsBoolean());
   layerModel.setDefaultVisible(visible.getValueAsBoolean());
   layerModel.setName(name.getValueAsString());
   layerModel.setPublic(publicLayer.getValueAsBoolean());
   return layerModel;
 }
 public DynamicLayerConfiguration getData() {
   layerConfig.getClientLayerInfo().setLabel(name.getValueAsString());
   layerConfig.getClientLayerInfo().setVisible(visible.getValueAsBoolean());
   extraLayerInfo.setPublic(publicLayer.getValueAsBoolean());
   extraLayerInfo.setActive(active.getValueAsBoolean());
   return layerConfig;
 }
  private void search() {
    try {

      String calendar_state_id = calendarStateItem.getValueAsString();
      Criteria criteria = new Criteria();
      if (calendar_state_id != null && !calendar_state_id.trim().equals("")) {
        criteria.setAttribute("calendar_state_id", new Integer(calendar_state_id));
      }
      String calendar_event_id = secCalendarTypeItem.getValueAsString();
      if (calendar_event_id != null && !calendar_event_id.trim().equals("")) {
        criteria.setAttribute("calendar_event_id", new Integer(calendar_event_id));
      }
      boolean checkedDate = byCalendarDayItem.getValueAsBoolean();
      if (checkedDate) {
        Date calendar_day = calendarDayItem.getValueAsDate();
        if (calendar_day != null) {
          criteria.setAttribute("calendar_day", calendar_day);
        }
      }
      String calendar_description = descriptionItem.getValueAsString();
      if (calendar_description != null && !calendar_description.trim().equals("")) {
        criteria.setAttribute("calendar_description", calendar_description);
      }
      String calendar_comment = commentItem.getValueAsString();
      if (calendar_comment != null && !calendar_comment.trim().equals("")) {
        criteria.setAttribute("calendar_comment", calendar_comment);
      }

      DSRequest dsRequest = new DSRequest();
      dsRequest.setAttribute("operationId", "searchAllSecularCalendars");
      listGrid.invalidateCache();
      listGrid.filterData(
          criteria,
          new DSCallback() {
            @Override
            public void execute(DSResponse response, Object rawData, DSRequest request) {}
          },
          dsRequest);
    } catch (Exception e) {
      SC.say(e.toString());
    }
  }