|| "127.0.0.1".equals(connectionHost)) {
// TODO Improve check for localhost
startServer();
Environment.getEnvironment().getTimeout("");
Timeout waitTime = new Timeout("connection wait time", 5 * 60000);
socket = new Waiter(waitTime).ensureState(new State<Socket>() {
Exception ex;
public Socket reached() {
Socket socket = null;
try {
socket = new Socket(connectionHost, connectionPort);