Using Thrift processos factory