code: private Map<Object, Object> getPackagedWarManifestAttributes() {
          Map<Object, Object> manifestAttributes = null;
          try {
              LOGGER.debug("Using Manifest file:{}", servletContext.getResource(MANIFEST).getPath());
              
              Manifest manifest = new Manifest(servletContext.getResourceAsStream(MANIFEST));
              manifestAttributes = manifest.getMainAttributes();
          } catch (Exception e) {
              LOGGER.warn("Unable to read the manifest from the packaged war");
              LOGGER.debug("Unable to read the manifest from the packaged", e);
          }
          return manifestAttributes;
      }
docs: Retrieve the Manifest from a packaged war
  
  @return Map manifest entries if found otherwise empty map