improve utility classes and add dependencies in pom.xml file