This at least has to be modified in multiple ways:

* We cannot directly use a Tomcat class by importing it. We will need to use the plugin's classloader.
* `getWebAppClasspath()` can be a JAR file (e.g. external library) or a directory (e.g. `build/classes/main`) so `POST` would not be appropriate.

I wonder why the original method `addRepository` was removed from the API. In the header of `WebappLoader` it is still mentioned. Maybe they just forgot to remove it. Do you have some good documentation about how to set up the web application classpath for Tomcat 8? Usually, there's nothing to be found except Javadocs.