Wrap all of this method body in a try finally:

  try {
    ... current code ...
  } finally {
    reader.release();
    inserter.release();
  }

That way the caller doesn't have to release our resources via another method call.