Limit[] limitsArray = new Limit[0];  return (Limit[])(this.limits.toArray(limitsArray));
Comparator displayOrderComparator = new Comparator() { public int compare(Object o1, Object o2) { return ((Limit)o1).getDisplayOrder() - ((Limit)o2).getDisplayOrder(); } };  Set limits = this.getLimits(); Limit[] limitArray = new Limit[0]; limitArray = (Limit[])(limits.toArray(limitArray));  Arrays.sort(limitArray, displayOrderComparator); return limitArray;
  public Limit[] getLimitsArray()  {      Limit[] limitsArray = new Limit[0];            return (Limit[])(this.limits.toArray(limitsArray));  }