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