code: def getAvailableTemplates(self):
          
          # Getting adapters for current context. those adapters will return
          # the desired sticker templates for the current context:
          try:
              adapters = getAdapters((self.context, ), IGetStickerTemplates)
          except ComponentLookupError:
              logger.info("No IGetStickerTemplates adapters found.")
              adapters = None
          templates = []
          if adapters is not None:
              # Gather all templates
              for name, adapter in adapters:
                  templates += adapter(self.request)
          if templates:
              return templates
          # If there are no adapters, get all sticker templates in the system
          seltemplate = self.getSelectedTemplate()
          for temp in getStickerTemplates(filter_by_type=self.filter_by_type):
              out = temp
              out["selected"] = temp.get("id", "") == seltemplate
              templates.append(out)
          return templates
docs: Returns an array with the templates of stickers available.
  
          Each array item is a dictionary with the following structure:
  
              {'id': <template_id>,
              'title': <teamplate_title>,
              'selected: True/False'}