using dom to read pom files in maven projects