code: public static NiftyProcessorFactory factoryFromTProcessorFactory(final TProcessorFactory standardThriftProcessorFactory)
      {
          checkProcessMethodSignature();
  
          return new NiftyProcessorFactory()
          {
              @Override
              public NiftyProcessor getProcessor(TTransport transport)
              {
                  return processorFromTProcessor(standardThriftProcessorFactory.getProcessor
                          (transport));
              }
          };
      }
docs: Create a {@link NiftyProcessorFactory} that delegates to a standard Thrift {@link TProcessorFactory}
  to construct an instance, then adapts each instance to a {@link NiftyProcessor}