public function setAsActive()
    {
        try {
            $templatecontent = $this->getBase64Contents();
            $format          = $this->getFormat();
        } catch ( FileExistException $ex ) {
            throw new FileExistException('Template file does not exist or is not readable' , $ex);
        }

        try {
            $this->getSoapClient()->SetLocalTemplate([
                'template' => $templatecontent ,
                'format'   => $format
            ]);
            $this->isActive = true;

            return $this;
        } catch ( SoapException $ex ) {
            throw new ActiveException('Error while setting the local template as the active template' , $ex);
        }
    }