case Mina3_tcp:
return new Mina3TcpBenchmarkServer();
case Mina3_udp:
return new Mina3UdpBenchmarkServer();
case Netty4_tcp:
return new Netty4TcpBenchmarkServer();
case Netty4_udp:
return new Netty4UdpBenchmarkServer();
default:
throw new IllegalArgumentException("Invalid type " + type);
}