protected function getCurrentResourceSetWrapper()
    {
        $segmentWrappers = $this->getStack()->getSegmentWrappers();
        $count = count($segmentWrappers);

        return 0 == $count ? $this->getRequest()->getTargetResourceSetWrapper() : $segmentWrappers[$count-1];
    }
protected function getCurrentResourceSetWrapper()
    {
        $segmentWrappers = $this->getStack()->getSegmentWrappers();
        $count = count($segmentWrappers);

        return 0 == $count ? $this->getRequest()->getTargetResourceSetWrapper() : $segmentWrappers[$count-1];
    }
protected function getCurrentResourceSetWrapper ( ) { $ segmentWrappers = $ this -> getStack ( ) -> getSegmentWrappers ( ) ; $ count = count ( $ segmentWrappers ) ; return 0 == $ count ? $ this -> getRequest ( ) -> getTargetResourceSetWrapper ( ) : $ segmentWrappers [ $ count - 1 ] ; }
Resource set wrapper for the resource being serialized.

@return ResourceSetWrapper
Resource set wrapper for the resource being serialized .