code: public boolean isValidProjectPom(File pom) {
          Document doc = null;
          try {
              doc = parseXml(new InputSource(new FileReader(pom)));
          } catch (FileNotFoundException e) {
              throw new RuntimeException(e.getMessage(), e);
          }
          Element root = doc.getDocumentElement();
  
          String packaging = firstElementText(root, "packaging", "");
  
          return packaging == null || !packaging.equals("pom");
      }
docs: Checks if the passed POM file describes project with packaging other than <code>pom</code>.
  
  @param pom
  @return