JBossWebComponent jbossWebComponent = discoveryContext.getParentResourceComponent();
ManagementView managementView = jbossWebComponent.getConnection().getManagementView();
// TODO (ips): Only refresh the ManagementView *once* per runtime discovery scan, rather than every time this
// method is called. Do this by providing a runtime scan id in the ResourceDiscoveryContext.
managementView.load();
Set<ManagedComponent> webHostComponents = getWebHostComponents(managementView);
Set<DiscoveredResourceDetails> discoveredResources = new LinkedHashSet(webHostComponents.size());
for (ManagedComponent webHostComponent : webHostComponents)
{