/**
   * Adds the foo to the database. Also notifies the appropriate model listeners.
   *
   * @param foo the foo
   * @return the foo that was added
   */
  @Indexable(type = IndexableType.REINDEX)
  @Override
  public Foo addFoo(Foo foo) {
    foo.setNew(true);

    return fooPersistence.update(foo);
  }