String rootPath) {
DefinesRoot root = new DefinesRoot();
ResFolder webContentFoler = new ResFolder();
webContentFoler.setPath(wabCtxPath);
webContentFoler.setAlias(wabCtxPath);
IPublishedFileResolver resolver = new BundleWebContentFileResolver(
bundle, rootPath);
webContentFoler.setResolverID(resolver.getClass().getName());
webContentFoler.setResolver(resolver);
root.getResResolvers().put(resolver.getClass().getName(), resolver);
root.getResources().add(webContentFoler);
root.setSourceBundle(bundle);
root.setName(wabCtxPath);
root.setId(bundle.getSymbolicName());
root.setVisitControler(new DefaultResourceVisitController() {