/**
  * @param $hateoasBuilder
  */
 public function setXmlSerializer(Builder &$hateoasBuilder)
 {
     if ($this->config['xmlSerializer'] === 'default') {
         $hateoasBuilder->setDefaultXmlSerializer();
     } else {
         $hateoasBuilder->setXmlSerializer(new $this->config['xmlSerializer']());
     }
 }