*/
@SuppressWarnings("unchecked")
public Client(String host, int port, String connectionFactoryClassName)
throws InstantiationException, IllegalAccessException, ClassNotFoundException,
UnknownHostException, IOException {
ConnectionFactory factory = ((Class<? extends ConnectionFactory>) Class
.forName(connectionFactoryClassName)).newInstance();
server = factory.newInstance(new Socket(host, port));
}