public function setBaseUrlToPortableData(&$data){
        $model = $this->getPortableModelRegistry()->getModel($data['model']);
        $portableObject = $model->createDataObject($data);
        $data['baseUrl'] = $model->getRegistry()->getBaseUrl($portableObject);
        return $data;
    }