if(server != null)
{
try
{
ServerSocketFactoryMBean serverSocketFactoryMBean =
(ServerSocketFactoryMBean)MBeanServerInvocationHandler.
newProxyInstance(server, serverSocketFactoryObjName,
ServerSocketFactoryMBean.class, false);
serverSocketFactory =
new ServerSocketFactoryWrapper(serverSocketFactoryMBean);