public function loadByGUID($model, $guid)
    {
        /**
         * @var Remote\Model
         */
        $class = $this->validateModelClass($model);

        $uri = sprintf('%s/%s', $class::getResourceURI(), $guid);
        $api = $class::getAPIStem();

        $url = new URL($this, $uri, $api);
        $request = new Request($this, $url, Request::METHOD_GET);
        $request->send();

        //Return the first (if any) element from the response.
        foreach ($request->getResponse()->getElements() as $element) {
            /**
             * @var Remote\Model
             */
            $object = new $class($this);
            $object->fromStringArray($element);

            return $object;
        }

        return;
    }
public function loadByGUID($model, $guid)
    {
        /**
         * @var Remote\Model
         */
        $class = $this->validateModelClass($model);

        $uri = sprintf('%s/%s', $class::getResourceURI(), $guid);
        $api = $class::getAPIStem();

        $url = new URL($this, $uri, $api);
        $request = new Request($this, $url, Request::METHOD_GET);
        $request->send();

        //Return the first (if any) element from the response.
        foreach ($request->getResponse()->getElements() as $element) {
            /**
             * @var Remote\Model
             */
            $object = new $class($this);
            $object->fromStringArray($element);

            return $object;
        }

        return;
    }
public function loadByGUID ( $ model , $ guid ) { /**
         * @var Remote\Model
         */ $ class = $ this -> validateModelClass ( $ model ) ; $ uri = sprintf ( '%s/%s' , $ class :: getResourceURI ( ) , $ guid ) ; $ api = $ class :: getAPIStem ( ) ; $ url = new URL ( $ this , $ uri , $ api ) ; $ request = new Request ( $ this , $ url , Request :: METHOD_GET ) ; $ request -> send ( ) ; //Return the first (if any) element from the response. foreach ( $ request -> getResponse ( ) -> getElements ( ) as $ element ) { /**
             * @var Remote\Model
             */ $ object = new $ class ( $ this ) ; $ object -> fromStringArray ( $ element ) ; return $ object ; } return ; }
As you should never have a GUID for a non-existent object, will throw a NotFoundExceptioon

@param $model
@param $guid
@throws Exception
@throws Remote\Exception\NotFoundException
@return Remote\Model|null
As you should never have a GUID for a non - existent object will throw a NotFoundExceptioon