System.out.println("started work thread");
Map options = new HashMap();
options.put("sync", true);
options.put("timeout", (long)10000);
AsyncMBeanServerConnection service = (AsyncMBeanServerConnection) factory.create(AsyncMBeanServerConnection.class, Client.class.getClassLoader(), options);
server = new MBeanServerConnectionAsyncAdapter(service);
while (!stop)
{
try
{