WebContext context = new PortletWebContext(config.getPortletContext());
addModuleIfExists(builder, resolver, context, "/WEB-INF/" + name + "/hivemodule.xml");
addModuleIfExists(builder, resolver, context, "/WEB-INF/hivemodule.xml");
return builder.constructRegistry(Locale.getDefault());
}
/**
* Looks for a file in the context; if it exists, it is expected to be a HiveMind module
* descriptor, and is added to the builder.