For testing purpose I am creating a URL that users can hit to manually kickoff a batch processing job on the backend. I then shoot back some debug data to the user so they can see it in their browser.
Right now I literally just pass a string variable from one function to next returning the result of each function all the way back down and out to the user. I feel like there has to be a better way to get the information I need from each of these functions and concatenate them.
This is all ran on a spring bean so I don't want to make the "debug" variable a property of the class.