p.waitFor();
LOG.debug("Finished executing process.");
}
catch (InterruptedException e)
{
throw new ActivityTerminatedException();
}
Process p = Runtime.getRuntime().exec(command.toString());
BufferedReader input =
new BufferedReader(
new InputStreamReader(p.getInputStream()));