{
if (server != null && isRegisterMBeans() && context instanceof DeploymentMBean)
{
try
{
DeploymentMBean depMBean = (DeploymentMBean) context;
server.registerMBean(context, depMBean.getObjectName());
}
catch (Exception e)
{
log.warn("Unable to register deployment mbean " + context.getName(), e);
}