public function createHtmlWriter($type = null)
{
if ($type === null) {
$type = $this->getHtmlWriterType();
}
if ($this->getHasAdapter()) {
return $this->_adapter->createNewHtmlWriter($type, $this);
} else {
return $this->createNewHtmlWriter($type, $this);
}
}