}
}
// Doing it to enable sip-listener monitoring.
if (adminEvent.toString().indexOf("SipListenerEvent") > 0) {
try {
SipService sipService = ServerBeansFactory.getConfigBean(adminEvent.getConfigContext()).getSipService();
SipListener[] sipListeners = sipService.getSipListener();
SipMonitoringManagerImpl.getInstance().enableSipListenerMonitoring(sipListeners[(sipListeners.length)-1].getId());
} catch (ConfigException ce) {
Logger.getLogger(ConfigBean2InternalMapperImpl.class.getName()).log(Level.WARNING, "SipServiceBeanNotFound ", ce);
}
}