public function convertDataObject($dataObject, $newStructure = null)
{
$p = new parent();
if (is_null($newStructure)) {
$newStructure = $this->newStructure;
}
$newDataObject = $p->convertDataObject($dataObject, $newStructure);
// run customizations required by this particular class
// make sure attributes->types is an array on the new
// object
if (!is_array($newDataObject->attributes->types)) {
$newDataObject->attributes->types = explode(',', $newDataObject->attributes->types);
}
// end customizations
return $newDataObject;
}