code: def _BuildFindSpecsFromRegistrySourceKey(self, key_path):
      
      find_specs = []
      for key_path_glob in path_helper.PathHelper.ExpandRecursiveGlobs(
          key_path, '\\'):
        logger.debug('building find spec from key path glob: {0:s}'.format(
            key_path_glob))
  
        key_path_glob_upper = key_path_glob.upper()
        if key_path_glob_upper.startswith('HKEY_USERS\\%%USERS.SID%%'):
          key_path_glob = 'HKEY_CURRENT_USER{0:s}'.format(key_path_glob[26:])
  
        find_spec = registry_searcher.FindSpec(key_path_glob=key_path_glob)
        find_specs.append(find_spec)
  
      return find_specs
docs: Build find specifications from a Windows Registry source type.
  
      Args:
        key_path (str): Windows Registry key path defined by the source.
  
      Returns:
        list[dfwinreg.FindSpec]: find specifications for the Windows Registry
            source type.