code: private void removeRow(VerticalLayout layout, CmsResourceTypeStatResult result) {
  
          Component componentToRemove = null;
          Iterator<Component> iterator = layout.iterator();
          while (iterator.hasNext()) {
              Component component = iterator.next();
              if (component instanceof HorizontalLayout) {
                  if (result.equals(((HorizontalLayout)component).getData())) {
                      componentToRemove = component;
                  }
              }
          }
          if (componentToRemove != null) {
              layout.removeComponent(componentToRemove);
          }
      }
docs: Removes result row representing given results.<p>
  
  @param layout with results
  @param result to be removed