public static <V extends Value> Frame<V>[] newFrameArray(int size) {
    @SuppressWarnings("unchecked") Frame<V>[] a = (Frame<V>[])new Frame[size];
    return a;
  }
public static <V extends Value> Frame<V>[] newFrameArray(int size)