code: private Transformer getTransformer(Class<?> keyClass) {
        Class<? extends Transformer> transformerClass = getTransformerClass(keyClass);
        if (transformerClass != null) {
           try {
              return transformerClass.newInstance();
           } catch (Exception e) {
              log.couldNotInstantiaterTransformerClass(transformerClass, e);
           }
        }
        return null;
     }
docs: Retrieves a {@link org.infinispan.query.Transformer} instance for this key.  If the key is not {@link
  org.infinispan.query.Transformable} and no transformer has been registered for the key's class, null is returned.
  
  @param keyClass key class to analyze
  @return a Transformer for this key, or null if the key type is not properly annotated.