Moved MAX_RETRIES constant to SystemPropertiesConfiguration. Switched to mock environment variables for thread safety.