server = new HornetQTaskServer(taskService, 5446);
Thread thread = new Thread(server);
thread.start();
Thread.sleep(500);
setClient(new TaskClient(new HornetQTaskClientConnector("client 1",
new HornetQTaskClientHandler(SystemEventListenerFactory.getSystemEventListener()))));
getClient().connect("127.0.0.1", 5446);
WSHumanTaskHandler handler = new WSHumanTaskHandler();
handler.setClient(getClient());
setHandler(handler);
}