if (rootWarOrDirectory == null) {
webAppCollection = WebAppCollectionFactory.create(props);
} else {
webAppCollection = deployRootWebapp(props, rootWarOrDirectory);
}
ServletContainerContext containerContext = webAppCollection.getContainerContext();
List<WebApp> webapps = new ArrayList<WebApp>();
for (File nonRootWar : nonRootWars) {
webapps.add(deployWar(props, nonRootWar, containerContext));
}
for (WebApp webapp : webapps) {