public function newInstance($name, $value)
    {
        $class = $this->getClassFor($name);
        return new $class($this->consumerService, $name, $value);
    }
public function newInstance($name, $value)
    {
        $class = $this->getClassFor($name);
        return new $class($this->consumerService, $name, $value);
    }
public function newInstance ( $ name , $ value ) { $ class = $ this -> getClassFor ( $ name ) ; return new $ class ( $ this -> consumerService , $ name , $ value ) ; }
Creates an AbstractHeader instance for the passed header name and value,
and returns it.

@param string $name
@param string $value
@return \ZBateson\MailMimeParser\Header\AbstractHeader
Creates an AbstractHeader instance for the passed header name and value and returns it .