This assumption is only true for the Servlet Protocol. Other Protocols might have different protocolArchive types. Warp probably only works with Servlet Protocol, but a check/controlled exception here if it's not a .war (not of Type WebArchive) would be nice, unless that is handled else where?


```java
if(protocolArchive.getName().endsWith(".war")) {
  protocolArchive.as(WebArchive.class).addAsLibrary(...)
}
```