return (ModifiableComponent)getSocietyComponent(i);
return (ModifiableComponent)getSocietyComponent();
  private ModifiableComponent getComponent(int i) {    // What a hack!!!    if (i < getSocietyComponentCount())      return (ModifiableComponent)getSocietyComponent(i);    else if (i < getComponentCount())       return (ModifiableComponent)(getRecipe(i - (getSocietyComponentCount())));    else      return null;  }