docs: protected static void validate( IndexDefinition defn, Problems problems ) {
          if (!defn.hasSingleColumn()) {
              problems.addError(JcrI18n.localIndexProviderDoesNotSupportMultiColumnIndexes, defn.getName(), defn.getProviderName());    
          }
          switch (defn.getKind()) {
              case TEXT:
                  // This is not valid ...
                  problems.addError(JcrI18n.localIndexProviderDoesNotSupportTextIndexes, defn.getName(),defn.getProviderName());        
          }
      }