}
};
if (bootstrapContext.isStandalone()) {
contextCallback
.onSuccess(new ApplyContext(true, null, Collections.<String>emptyList(), patchManager.baseAddress(),
bootstrapContext.getProperty(
BootstrapContext.PATCH_API)));
} else {
final String host = domainManager.getSelectedHost();
dispatcher
.execute(new DMRAction(getRunningServersOp(host)), new GetRunningServersCallback(contextCallback) {
@Override
protected void onServers(final List<String> runningServers) {
contextCallback.onSuccess(new ApplyContext(false, host, runningServers,
patchManager.baseAddress(),
bootstrapContext.getProperty(BootstrapContext.PATCH_API)));
}
});
}