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

if (!foreground) {
</BUG>
updateStatus(

backgroundHandler,
terminatedHandler,
completionHandler);
}
} else {
throw new IllegalStateException("Cannot set to background a process in " + processStatus + " state");
}
}
@Override
public void toForeground(Handler<Void> completionHandler) {
if (processStatus == ExecStatus.RUNNING) {
if (!processForeground) {
updateStatus(
