return (LeafComponentData[]) leafComponents.toArray();
return (LeafComponentData[]) leafComponents.toArray(new LeafComponentData[0]);
  public LeafComponentData[] getLeafComponents() {    return (LeafComponentData[]) leafComponents.toArray();  }