protected internal virtual void ensureTenantAuthorized(CommandContext commandContext, ProcessDefinitionEntity processDefinition) { if (!commandContext.TenantManager.isAuthenticatedTenant(processDefinition.TenantId)) { throw LOG.exceptionCommandWithUnauthorizedTenant("restart process instances of process definition '" + processDefinition.Id + "'"); } }