code: public function getEndpoint($name)
      {
          if (!isset($this->endpoint[$name])) {
              throw new OutOfBoundsException("No Endpoint registered for '{$name}'.");
          }
  
          return $this->endpoint[$name];
      }
docs: Get Endpoint with $name.
  
  @param string $name
  
  @return \EzSystems\EzPlatformSolrSearchEngine\Gateway\Endpoint