private ServerCommandID createServerCommand(String command) throws IOException {
        FileInputStream fis = null;
        BufferedReader reader = null;

        try {
            fis = new FileInputStream(commandFile);
            reader = new BufferedReader(new InputStreamReader(fis));
            String line = reader.readLine();
            if (line == null)
                line = "";

            return new ServerCommandID(line, command);
        } finally {
            if (!Utils.tryToClose(reader)) {
                Utils.tryToClose(fis);
            }
        }
    }
private ServerCommandID createServerCommand ( String command ) throws IOException { FileInputStream fis = null ; BufferedReader reader = null ; try { fis = new FileInputStream ( commandFile ) ; reader = new BufferedReader ( new InputStreamReader ( fis ) ) ; String line = reader . readLine ( ) ; if ( line == null ) line = "" ; return new ServerCommandID ( line , command ) ; } finally { if ( ! Utils . tryToClose ( reader ) ) { Utils . tryToClose ( fis ) ; } } }
Create a new server command instance: read from the
.sCommand file, obtain the UUID and the port from that file,
and construct a new command (to be sent to that port) containing
the UUID and the command string.

@param command
@return
@throws Exception