code: public Factory getMessageFactory()
      {
          return new Factory()
          {
              @Override
              public ThriftMessage create(ChannelBuffer messageBuffer)
              {
                  return new ThriftMessage(messageBuffer, getTransportType());
              }
          };
      }
docs: Gets a {@link Factory} for creating messages similar to this one. Used by {@link
  NiftyDispatcher} to create response messages that are similar to their corresponding
  request messages.
  
  @return The {@link Factory}