protected function getFromObject(\stdClass $p_data = null)
    {
        if (isset($p_data->data)) {
            $data = $p_data->data;
            if ($data instanceof \stdClass) {
                // Single object
                $this->data = $this->getResourceObject($data);
            } else {
                if (is_array($data)) {
                    // Collection
                } else {
                    // @todo
                }
            }
        }
        return $this;
    }