protected internal virtual void EnsureProcessInstanceAndTenantIdNotSet()
 {
     if (!ReferenceEquals(processInstanceId, null) && IsTenantIdSet)
     {
         throw Log.ExceptionCorrelateMessageWithProcessInstanceAndTenantId();
     }
 }