private StyxConfig entityToConfig(Entity entity) {
return StyxConfig.newBuilder()
.globalConcurrency(readOpt(entity, PROPERTY_CONFIG_CONCURRENCY))
.globalEnabled(read(entity, PROPERTY_CONFIG_ENABLED, DEFAULT_CONFIG_ENABLED))
.debugEnabled(read(entity, PROPERTY_CONFIG_DEBUG_ENABLED, DEFAULT_CONFIG_DEBUG_ENABLED))
.submissionRateLimit(readOpt(entity, PROPERTY_SUBMISSION_RATE_LIMIT))
.globalDockerRunnerId(
read(entity, PROPERTY_CONFIG_DOCKER_RUNNER_ID, DEFAULT_CONFIG_DOCKER_RUNNER_ID))
.clientBlacklist(this.<String>readStream(entity, PROPERTY_CONFIG_CLIENT_BLACKLIST)
.collect(toList()))
.executionGatingEnabled(
read(entity, PROPERTY_CONFIG_EXECUTION_GATING_ENABLED, DEFAULT_CONFIG_EXECUTION_GATING_ENABLED))
.build();
}