This bit of code came out of a project I worked on for an application team that doesn’t have a Java developer, the goal was to create an email system that can be triggered based on database