TProtocol tProtocol = null;
if (protocol_type.equals("json")) {
tProtocol = new TJSONProtocol(transport);
} else if (protocol_type.equals("compact")) {
tProtocol = new TCompactProtocol(transport);
} else {
tProtocol = new TBinaryProtocol(transport);
}
ThriftTest.Client testClient =