/**
  * @Flow\AfterReturning("setting(Flowpack.ElasticSearch.realtimeIndexing.enabled) && within(TYPO3\Flow\Persistence\PersistenceManagerInterface) && method(public .+->(remove)())")
  * @param \TYPO3\Flow\Aop\JoinPointInterface $joinPoint
  * @return string
  */
 public function removeObjectFromIndex(\TYPO3\Flow\Aop\JoinPointInterface $joinPoint)
 {
     $arguments = $joinPoint->getMethodArguments();
     $object = reset($arguments);
     $this->objectIndexer->removeObject($object);
 }