public function getServiceById($id)
    {
        if ($name = $this->getServiceNameById($id)) {
            return $this->getService($name);
        }

        return null;
    }
public function getServiceById($id)
    {
        if ($name = $this->getServiceNameById($id)) {
            return $this->getService($name);
        }

        return null;
    }
public function getServiceById ( $ id ) { if ( $ name = $ this -> getServiceNameById ( $ id ) ) { return $ this -> getService ( $ name ) ; } return null ; }
Get a service instance by its identifier.

@param  int $id

@return \DreamFactory\Core\Contracts\ServiceInterface
@throws \DreamFactory\Core\Exceptions\NotFoundException
Get a service instance by its identifier .