protected function cleanToken() {
    if ($token_name = $this->getToken()) {
      // Remove the token and arguments and return the path.
      $path = substr($this->path, strlen($token_name));
      return preg_replace('/<.*>/', '', $path);
    }
    $message = sprintf('No token could be found in "%s". Available tokens are: %s.', $this->path, implode(', ', array_keys($this->supportedTokens)));
    throw new ClassLoaderException($message);
  }