// determine if userActionRequests should be queued.
boolean queueCreatePerson = createPersonActionKey != null && !createPersonActionKey.isEmpty();
boolean queueLockAccounts = lockPersonActionKey != null && !lockPersonActionKey.isEmpty();
// get system setting to determine if emails should be sent to created users.
SystemSettings settings = settingsMapper.execute(null);
boolean shouldSendEmail = settings.getSendWelcomeEmails();
// counts for summary log.
int toLock = 0;
int toUnlock = 0;
int toCreate = 0;