code: private boolean activityNeedsWait(GeneralActivity activity)
              throws ActivityException {
          if (activity instanceof SuspendableActivity)
              return ((SuspendableActivity) activity).needSuspend();
          return false;
      }
docs: determine if activity needs to wait (such as synchronous
  process invocation, wait activity, synchronization)