/**
  * Creates a new argument. This is a replacement for $this->objectFactory->create() of FLOW3.
  *
  * @param string $name Name of the argument
  * @param string $dataType Name of one of the built-in data types
  * @return Tx_Extbase_MVC_Controller_Argument The created argument
  */
 protected function createArgument($name, $dataType)
 {
     $argument = new Tx_Extbase_MVC_Controller_Argument($name, $dataType);
     $argument->injectPersistenceManager($this->persistenceManager);
     $argument->injectQueryFactory($this->queryFactory);
     $argument->initializeObject();
     return $argument;
 }