while (!started) {
if (timedOut) {
throw new Exception("Unable to verify if the server was started in the given time");
}
ServerConnection connection;
ServerProxy server = null;
try {
connection = connect();
server = new ServerProxy(((RemoteDeploymentManager)connection.getDeploymentManager()).getJMXConnector());
} catch (Exception error) {
log.debug("Server query failed; ignoring", error);
try {
Thread.sleep(1000);
} catch (InterruptedException e) {