Source:
<code>public static void main(String[] args) { <START> CorfuRuntime runtime; <END> Map<String, Object> opts = new Docopt(USAGE) .withVersion(GitRepositoryState.getRepositoryState().describe) .parse(args); String host = opts.get("--host").toString(); Integer port = Integer.parseInt(opts.get("--port").toString()); boolean tlsEnabled = Boolean.parseBoolean(opts.get("--tlsEnabled").toString()); if (tlsEnabled) { String keystore = opts.get("--keystore").toString(); String ks_password = opts.get("--ks_password").toString(); String truststore = opts.get("--truststore").toString(); String truststore_password = opts.get("--truststore_password").toString(); runtime = CorfuRuntime.fromParameters( CorfuRuntime.CorfuRuntimeParameters.builder().useFastLoader(false) .cacheDisabled(true) .tlsEnabled(tlsEnabled) .keyStore(keystore) .ksPasswordFile(ks_password) .trustStore(truststore) .tsPasswordFile(truststore_password).build()); } else { runtime = CorfuRuntime.fromParameters( CorfuRuntime.CorfuRuntimeParameters.builder() .useFastLoader(false) .cacheDisabled(true) .tlsEnabled(tlsEnabled).build()); } String singleNodeEndpoint = String.format("%s:%d", host, port); runtime.parseConfigurationString(singleNodeEndpoint); runtime.connect(); log.info("Successfully connected to {}", singleNodeEndpoint); CorfuStoreBrowser browser = new CorfuStoreBrowser(runtime); CorfuTable<CorfuDynamicKey, CorfuDynamicRecord> table = browser.getTable(opts.get("--namespace").toString(), opts.get("--tablename").toString()); browser.printTable(table); }</code><technical_language>a wrapping try-catch block? if is exception? log fail silently</technical_language>

Target:
public static void main(String[] args) { try { CorfuRuntime runtime; Map<String, Object> opts = new Docopt(USAGE) .withVersion(GitRepositoryState.getRepositoryState().describe) .parse(args); String host = opts.get("--host").toString(); Integer port = Integer.parseInt(opts.get("--port").toString()); boolean tlsEnabled = Boolean.parseBoolean(opts.get("--tlsEnabled") .toString()); CorfuRuntime.CorfuRuntimeParameters.CorfuRuntimeParametersBuilder builder = CorfuRuntime.CorfuRuntimeParameters.builder() .useFastLoader(false) .cacheDisabled(true) .tlsEnabled(tlsEnabled); if (tlsEnabled) { String keystore = opts.get("--keystore").toString(); String ks_password = opts.get("--ks_password").toString(); String truststore = opts.get("--truststore").toString(); String truststore_password = opts.get("--truststore_password").toString(); builder.tlsEnabled(tlsEnabled) .keyStore(keystore) .ksPasswordFile(ks_password) .trustStore(truststore) .tsPasswordFile(truststore_password); } runtime = CorfuRuntime.fromParameters(builder.build()); String singleNodeEndpoint = String.format("%s:%d", host, port); runtime.parseConfigurationString(singleNodeEndpoint); runtime.connect(); log.info("Successfully connected to {}", singleNodeEndpoint); CorfuStoreBrowser browser = new CorfuStoreBrowser(runtime); CorfuTable<CorfuDynamicKey, CorfuDynamicRecord> table = browser.getTable( opts.get("--namespace").toString(), opts.get("--tablename").toString() ); browser.printTable(table); } catch (Throwable t) { log.error("Error in Browser Execution.", t); throw t; } }