public void setEnabled(boolean enabled) {
        this.enabled = enabled;
        if (isEnabled()) {
            start();
        } else {
            stop();
        }
    }
Set the service enable status.

@param enabled boolean value setting enabled or disabled
xmppserver/src/main/java/org/jivesoftware/openfire/mediaproxy/MediaProxyService.java