code: public static Metadata fromPomProperties(InputStream is) {
          Metadata metadata = new Metadata();
          BufferedReader input = new BufferedReader(new InputStreamReader(is));
          try {
              String line;
              while ((line = input.readLine()) != null) {
                  if (line.startsWith("#"))
                      continue;
                  String[] property = line.trim().split("=");
                  if (property.length == 2)
                      metadata.put(property[0], property[1]);
              }
          } catch (IOException e) {
              // Problems? Too bad!
          }
          return metadata;
      }
docs: Attempts to parse a pom.xml file.
  
  @param is
  An input stream containing the extracted POM file.