}
private static JavaREPLClient connectToRemoteInstance(String hostname, Integer port) {
JavaREPLClient replClient = new JavaREPLClient(hostname, port);
if (!replClient.status().isRunning()) {
console.printError("ERROR: Could not connect to remote REPL instance at http://" + hostname + ":" + port);
System.exit(0);
} else {
console.printInfo("Connected to remote instance at http://" + hostname + ":" + port);
}