code: protected boolean isTemplateContextCompatible(CmsTemplateContext templateContext) {
  
          Set<String> contextKeys = new HashSet<String>(templateContext.getProvider().getAllContexts().keySet());
          return contextKeys.equals(new HashSet<String>(TYPES));
      }
docs: Checks if a template context is compatible with this device selector.<p>
  
  @param templateContext the template context to check
  
  @return true if the template context is compatible