Source:
void tryGetValuesFromSystem() { serviceEndpoint = StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("SERVICE_END_POINT")), serviceEndpoint); masterKey = StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("MASTER_KEY")), masterKey); databaseId = StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("DATABASE_ID")), databaseId); collectionId = StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("COLLECTION_ID")), collectionId); documentDataFieldSize = Integer.parseInt( StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("DOCUMENT_DATA_FIELD_SIZE")), Integer.toString(documentDataFieldSize))); maxConnectionPoolSize = Integer.parseInt( StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("MAX_CONNECTION_POOL_SIZE")), Integer.toString(maxConnectionPoolSize))); ConsistencyLevelConverter consistencyLevelConverter = new ConsistencyLevelConverter(); consistencyLevel = consistencyLevelConverter.convert(StringUtils .defaultString(Strings.emptyToNull(System.getenv().get("CONSISTENCY_LEVEL")), consistencyLevel.name())); OperationTypeConverter operationTypeConverter = new OperationTypeConverter(); operation = operationTypeConverter.convert( StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("OPERATION")), operation.name())); String concurrencyValue = StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("CONCURRENCY")), concurrency == null ? null : Integer.toString(concurrency)); concurrency = concurrencyValue == null ? null : Integer.parseInt(concurrencyValue); String numberOfOperationsValue = StringUtils.defaultString( Strings.emptyToNull(System.getenv().get("NUMBER_OF_OPERATIONS")), Integer.toString(numberOfOperations)); numberOfOperations = Integer.parseInt(numberOfOperationsValue); String throughPutForMultiClientValue = StringUtils.defaultString( Strings.emptyToNull(System.getenv().get("THROUGHPUT_MULTICLIENT")), Integer.toString(throughPutForMultiClient)); throughPutForMultiClient = Integer.parseInt(throughPutForMultiClientValue); }

Target:
void tryGetValuesFromSystem() { serviceEndpoint = StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("SERVICE_END_POINT")), serviceEndpoint); masterKey = StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("MASTER_KEY")), masterKey); databaseId = StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("DATABASE_ID")), databaseId); collectionId = StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("COLLECTION_ID")), collectionId); documentDataFieldSize = Integer.parseInt( StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("DOCUMENT_DATA_FIELD_SIZE")), Integer.toString(documentDataFieldSize))); maxConnectionPoolSize = Integer.parseInt( StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("MAX_CONNECTION_POOL_SIZE")), Integer.toString(maxConnectionPoolSize))); ConsistencyLevelConverter consistencyLevelConverter = new ConsistencyLevelConverter(); consistencyLevel = consistencyLevelConverter.convert(StringUtils .defaultString(Strings.emptyToNull(System.getenv().get("CONSISTENCY_LEVEL")), consistencyLevel.name())); OperationTypeConverter operationTypeConverter = new OperationTypeConverter(); operation = operationTypeConverter.convert( StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("OPERATION")), operation.name())); String concurrencyValue = StringUtils.defaultString(Strings.emptyToNull(System.getenv().get("CONCURRENCY")), concurrency == null ? null : Integer.toString(concurrency)); concurrency = concurrencyValue == null ? null : Integer.parseInt(concurrencyValue); String numberOfOperationsValue = StringUtils.defaultString( Strings.emptyToNull(System.getenv().get("NUMBER_OF_OPERATIONS")), Integer.toString(numberOfOperations)); numberOfOperations = Integer.parseInt(numberOfOperationsValue); String throughputValue = StringUtils.defaultString( Strings.emptyToNull(System.getenv().get("THROUGHPUT")), Integer.toString(throughput)); throughput = Integer.parseInt(throughputValue); }