code: public static void addWarToServerApps(LibertyServer server, String warName, boolean addWarResources, String jarName, boolean addJarResources,
                                            String... packageNames) throws Exception {
          addEarToServer(server, DIR_APPS, null, false, warName, addWarResources, jarName, addJarResources, packageNames);
      }
docs: /*
  Helper method to create a war and add it to the apps directory