public void start() {
        ObjectName serverName = null;
        HtmlAdaptorServer adaptor = null;
        try {
            serverName = new ObjectName("Http:name=HttpAdaptor");
            adaptor = new HtmlAdaptorServer();
            domain.registerMBean(adaptor, serverName);
        } catch (MalformedObjectNameException e) {
            e.printStackTrace();
        } catch (NotCompliantMBeanException e) {
            e.printStackTrace();
        } catch (InstanceAlreadyExistsException e) {
            e.printStackTrace();
        } catch (MBeanRegistrationException e) {
            e.printStackTrace();
        }
        try {
            domain.setAttribute(serverName, new Attribute("Port", new Integer(port)));
        } catch (InstanceNotFoundException e) {
            e.printStackTrace();
        } catch (AttributeNotFoundException e) {
            e.printStackTrace();
        } catch (InvalidAttributeValueException e) {
            e.printStackTrace();
        } catch (MBeanException e) {
            e.printStackTrace();
        } catch (ReflectionException e) {
            e.printStackTrace();
        }
        adaptor.setPort(port);
        System.out.println("Starting the HtmlAdaptor....on port:"+adaptor.getPort());
        adaptor.start();
    }