runningProcesses = false;
Collection processes = pd.processes();
for (Iterator it=processes.iterator();it.hasNext();) {
try {
Process process = (Process)(it.next());
if (process.state().startsWith("open.running")) {
runningProcesses = true;
}
} catch (NoSuchObjectException e) {
// object not database anymore, so it is not running anymore
}