// Transport
TServerSocket tServerSocket =
new TServerSocket(port);
// Protocol factory
TProtocolFactory tProtocolFactory;
if (header) {
System.out.println("Header server accepting all");
List<THeaderTransport.ClientTypes> clientTypes =
new ArrayList<THeaderTransport.ClientTypes>();
tProtocolFactory = new THeaderProtocol.Factory(clientTypes);