config.setDispatcherThreads(String.valueOf(dispatcherThreads)); config.setEnableBatchConflation(enableBatchConflation); config.setForwardExpirationDestroy(forwardExpirationDestroy); if (gatewayEventFilters != null) { config.getGatewayEventFilters().addAll(Arrays.stream(gatewayEventFilters)