code: public DynaFormControl addControl(final Object data, final String type, final int colspan, final int rowspan) {
          final DynaFormControl dynaFormControl = new DynaFormControl(data,
                      type,
                      colspan,
                      rowspan,
                      row,
                      elements.size() + 1,
                      dynaFormModel.getControls().size() + 1,
                      extended);
  
          elements.add(dynaFormControl);
          dynaFormModel.getControls().add(dynaFormControl);
          totalColspan = totalColspan + colspan;
  
          return dynaFormControl;
      }
docs: Adds control with given data, type, colspan and rowspan.
  
  @param data data object
  @param type type to match the type attribute in pe:dynaFormControl
  @param colspan colspan
  @param rowspan rowspan
  @return DynaFormControl added control