private static GridConstraints[] copyConstraints(RadContainer grid) {
    final GridConstraints[] gridConstraints = new GridConstraints[grid.getComponentCount()];
    for (int i = 0; i < grid.getComponentCount(); i++) {
      gridConstraints [i] = (GridConstraints) grid.getComponent(i).getConstraints().clone();
    }
    return gridConstraints;
  }
private static GridConstraints[] copyConstraints(RadContainer grid)