I'm not sure what you mean by that question. My main suggestion is moving this endpoint out of the code and putting it in a properties file to be read as the default. I'm not concerned with how you read these environment variables.