code: def resolve_service_spec(self, name, lineno):
          
  
          if name in self.service_specs:
              return self.service_specs[name].link(self)
  
          if '.' in name:
              include_name, component = name.split('.', 2)
              if include_name in self.included_scopes:
                  return self.included_scopes[
                      include_name
                  ].resolve_service_spec(component, lineno)
  
          raise ThriftCompilerError(
              'Unknown service "%s" referenced at line %d%s' % (
                  name, lineno, self.__in_path()
              )
          )
docs: Finds and links the ServiceSpec with the given name.