Well not sure about anyone else but that seems even more confusing
Starting from the top down:
1. Look up case changing as no need to go through all those combinations for yes or no
2. Why not simply return the response from the loop and use a simple if to choose what to do
3. man pgrep - makes check_tomcat_status pointless
4. the point about placing commands in variables already pointed out and now we see not simply one but all 4 variables .. even sourcing from a variable. Maybe instead of using creative variable names in what seems to be an attempt to make the code something you can follow, simply add comments to your code