if (headlessMode) {
newUI = new HeadlessUI(options);
} else {
if (options.useRemoteUI()) {
try {
newUI = new RemoteUI(options.getRemoteUIHost(),
options.getRemoteUIHostPort(), options.getClientId());
baseLogLevelForUI = TreeLogger.Type.TRACE;
} catch (Throwable t) {
System.err.println("Could not connect to remote UI listening at "
+ options.getRemoteUIHost() + ":" + options.getRemoteUIHostPort()