public function getServlet($key)
    {
        if ($this->servlets->has($key)) {
            return $this->servlets->get($key);
        }
    }
public function getServlet($key)
    {
        if ($this->servlets->has($key)) {
            return $this->servlets->get($key);
        }
    }
public function getServlet ( $ key ) { if ( $ this -> servlets -> has ( $ key ) ) { return $ this -> servlets -> get ( $ key ) ; } }
Returns the servlet with the passed name.

@param string $key The name of the servlet to return

@return \AppserverIo\Psr\Servlet\ServletInterface The servlet instance
Returns the servlet with the passed name .