// This means the WAR is stopped, which means it has no contexts associated with it.
return Collections.emptySet();
}
String webApplicationManagerComponentNamesRegex = WEB_APPLICATION_COMPONENT_NAMES_REGEX_TEMPLATE.replaceAll("%"
+ WebApplicationContextComponent.CONTEXT_PATH_PROPERTY + "%", contextPath);
ComponentType webApplicationComponentType = MoreKnownComponentTypes.MBean.WebApplication.getType();
//return managementView.getMatchingComponents(webApplicationManagerComponentNamesRegex,
// webApplicationComponentType, new RegularExpressionNameMatcher());
return ManagedComponentUtils.getManagedComponents(managementView, webApplicationComponentType,
webApplicationManagerComponentNamesRegex, new RegularExpressionNameMatcher());