fixing the pom files as well as updating the code because my understanding of OptionGroups was incorrect.