public function findEndpoint($name)
    {
        $endpointArr = null;

        foreach($this->endpoints as $key => $value)
        {
            if(strpos($name, $key) !== false)
            {
                $endpointArr = [$key => $value];
                break;
            }
        }

        return $endpointArr;
    }