code: protected IndexType getIndexType(String type)
      {
          type = type.toLowerCase();
          if ("keys".equals(type))
              return IndexType.KEYS;
          else if("custom".equals(type))
              return IndexType.CUSTOM;
          else if("composites".equals(type))
              return IndexType.COMPOSITES;
          else
              return null;
      }
docs: get index type from string