code: public static WarInfo getWarInfo(File war) throws Exception {
      WarInfo info = new WarInfo();
      info.setWarName(war.getName());
      CadmiumWar warHelper = null;
      try {
        if(war != null && war.exists()) {
          warHelper = new FileBasedCadmiumWar(war);
        } else {
          warHelper = new ClasspathCadmiumWar();
        }
        getDeploymentInfo(info, warHelper);
        getCadmiumInfo(info, warHelper);
        getArtifactInfo(info, warHelper);
      } finally {
        IOUtils.closeQuietly(warHelper);
      }
      return info;
    }
docs: Reads a Cadmium war file or war directory and returns a {@link WarInfo}
  Instance with all of the details about the war.
  @param war The compressed war file or exploded war directory to get the info about.
  @return A {@link WarInfo} Instance with the gathered information.
  @throws Exception