/** * Reload the server to a snapshot. In managed domain, reloads the default host to a domain.xml snapshot. */ public void perform() throws InterruptedException, TimeoutException, IOException { if (client.options().isStandalone) { new StandaloneAdministrationOperations(client, timeoutInSeconds) .performRestartOperation(new ReloadToStandaloneSnapshotRestartOperation(snapshot)); } else { perform(client.options().defaultHost); } }