@Nullable
private String getJBossWebMBeanName() {
Configuration pluginConfig = getResourceContext().getPluginConfiguration();
String jbossWebMBeanName = pluginConfig.getSimpleValue(WarComponent.JBOSS_WEB_NAME, null);
if (jbossWebMBeanName == null) {
WarDeploymentInformation deploymentInformation = getDeploymentInformation();
if (deploymentInformation != null) {
jbossWebMBeanName = deploymentInformation.getJbossWebModuleMBeanObjectName();
WarDiscoveryHelper.setDeploymentInformation(pluginConfig, deploymentInformation);
}
}
return jbossWebMBeanName;
}