private static void setSpec(final FormLayout formLayout, final FormSpec newSpec, final int cell, boolean isRow) {
    if (isRow) {
      formLayout.setRowSpec(cell, (RowSpec) newSpec);
    }
    else {
      formLayout.setColumnSpec(cell, (ColumnSpec) newSpec);
    }
  }
private static void setSpec(final FormLayout formLayout, final FormSpec newSpec, final int cell, boolean isRow)