ObjectName result = null;
try
{
final WebModuleVirtualServerMonitor webModuleVirtualServerMonitor =
(WebModuleVirtualServerMonitor)webModule.getMonitoringPeer();
if ( webModuleVirtualServerMonitor == null )
{
final ObjectName objectName = Util.getObjectName( webModule );
final String msg = "ServletImpl.queryMonitoringPeerFailed: " +
"Can't get WebModuleVirtualServerMonitor for " +
quote( toString( objectName ));
debug( msg );
logFine( msg );
}
else
{
final Map<String,ServletMonitor> servletMap =
webModuleVirtualServerMonitor.getServletMonitorMap();
final ServletMonitor sm = servletMap.get( getName() );
if ( sm != null )
{
result = Util.getObjectName( sm );