code: public static EnterpriseArchive packageWars(LibertyServer server, String dir, EnterpriseArchive ear, String... warFiles) throws Exception {
          String baseDir = DIR_PUBLISH + server.getServerName() + "/" + dir + "/";
          for (String warFile : warFiles) {
              WebArchive war = ShrinkWrap.createFromZipFile(WebArchive.class, new File(baseDir + warFile));
              ear.addAsModule(war);
          }
          return ear;
      }
docs: /*