</BUG>
}
}
@Override
public void toBackground(Handler<Void> completionHandler) {
<BUG>if (status == ExecStatus.RUNNING) {

if (foreground) {
</BUG>
updateStatus(

false,
suspendHandler,
terminatedHandler,
completionHandler);
} else {
throw new IllegalStateException("Cannot suspend process in " + processStatus + " state");
}
}
@Override
public void toBackground(Handler<Void> completionHandler) {
if (processStatus == ExecStatus.RUNNING) {
if (processForeground) {
updateStatus(
