private static OPT_OptimizationPlanElement[] finalize(Vector v) { OPT_OptimizationPlanElement[] p = new OPT_OptimizationPlanElement[v.size()]; for (int i = 0; i < v.size(); i++) { p[i] = (OPT_OptimizationPlanElement)v.elementAt(i); } return p;
private static OPT_OptimizationPlanElement[] finalize(ArrayList planElementList) { OPT_OptimizationPlanElement[] p = new OPT_OptimizationPlanElement[planElementList.size()]; planElementList.toArray(p); return p;
  private static OPT_OptimizationPlanElement[] finalize(Vector v) {    OPT_OptimizationPlanElement[] p = new OPT_OptimizationPlanElement[v.size()];    for (int i = 0; i < v.size(); i++) {      p[i] = (OPT_OptimizationPlanElement)v.elementAt(i);    }    return p;  }