code: protected void initActivityIds(List<DelayedVariableEvent> delayedEvents,
                                   Map<PvmExecutionImpl, String> activityInstanceIds,
                                   Map<PvmExecutionImpl, String> activityIds) {
  
      for (DelayedVariableEvent event : delayedEvents) {
        PvmExecutionImpl targetScope = event.getTargetScope();
  
        String targetScopeActivityInstanceId = getActivityInstanceId(targetScope);
        activityInstanceIds.put(targetScope, targetScopeActivityInstanceId);
        activityIds.put(targetScope, targetScope.getActivityId());
      }
    }
docs: Initializes the given maps with the target scopes and current activity id's and activity instance id's.
  
  @param delayedEvents       the delayed events which contains the information about the target scope
  @param activityInstanceIds the map which maps target scope to activity instance id
  @param activityIds         the map which maps target scope to activity id