public function Serialize($entity)
    {
        $this->collectResourceURL($entity);
        $arrayObj = $this->customerConvertObjectToArray($entity);
        $array = $this->removeNullProperties($arrayObj);
        return $this->checkResult(json_encode($array, true));
    }