output.close();
    private static String getCurrentHostName() {        String result = "unknown";        try {            Process proc = Runtime.getRuntime().exec("hostname");            proc.waitFor();            BufferedReader output = new BufferedReader(new InputStreamReader(proc.getInputStream()));            result = output.readLine();        } catch (IOException e) {            System.err.println("Warning: could not determine current host name for cluster-config file (IOException).");        } catch (InterruptedException e) {            System.err.println("Warning: could not determine current host name for cluster-config file (InterruptedException).");        }        return result;    }