protected abstract void addLibrariesToEar(EnterpriseArchive ear, Collection<Archive<?>> libs);
private Archive<?> handleWar(WebArchive war, WebArchive protocol, Processor processor) {
if (war.contains(WEB_XML_PATH)) {
WebAppDescriptor applicationWebXml = Descriptors.importAs(WebAppDescriptor.class).fromStream(war.get(WEB_XML_PATH).getAsset().openStream());
// SHRINKWRAP-187, to eager on not allowing overrides, delete it first
war.delete(WEB_XML_PATH);
war.setWebXML(new StringAsset(mergeWithDescriptor(applicationWebXml).exportAsString()));
war.merge(protocol, Filters.exclude(".*web\\.xml.*"));
} else {