code: private static String getVersion() {
      Properties props = new Properties();
      try (InputStream is =
          NGConstants.class.getResourceAsStream(
              "/META-INF/maven/com.facebook/nailgun-server/pom.properties")) {
        props.load(is);
      } catch (Throwable e) {
        // In static initialization context, outputting or logging an exception is dangerous
        // It smells bad, but let's ignore it
      }
      return props.getProperty("version", System.getProperty("nailgun.server.version", "[UNKNOWN]"));
    }
docs: Loads the version number from a file generated by Maven.