boolean htOnly = handlesTypesOnly || !fragment.getWebappJar() ||
fragment.isMetadataComplete();
WebXml annotations = new WebXml();
annotations.setDistributable(true);
URL url = fragment.getURL();
<BUG>processAnnotationsUrl(url, annotations, htOnly);
</BUG>
Set<WebXml> set = new HashSet<>();
set.add(annotations);
fragment.merge(set);

boolean htOnly = handlesTypesOnly || !fragment.getWebappJar() ||
fragment.isMetadataComplete();
WebXml annotations = new WebXml();
annotations.setDistributable(true);
URL url = fragment.getURL();
processAnnotationsUrl(url, annotations, htOnly, javaClassCache);
Set<WebXml> set = new HashSet<>();
set.add(annotations);
fragment.merge(set);
