Moved server Thrift code into ThriftController