}
}
private void connectOpenOfficeServer() {
for (int port : openOfficeServerPorts) {
LinuxCommandExecutor exec = new LinuxCommandExecutor();
exec.setWorkingDirectory(workingDirectory);
try {
int exitValue = exec.runCommand(workingDirectory + "/startOpenOfficeServer.sh " + port);
// return value "0" from the script 'startOpenOfficeServer.sh' indicates that the open office
// server has been successfully started at port
if (exitValue == 0) {
openOfficeServerPort = port;