}
started = false;
}
private void registerJmxForHandler(final HttpHandler httpHandler) {
final Monitorable monitorable = (Monitorable) httpHandler;
final Object jmx = monitorable.createManagementObject();
if (monitors.putIfAbsent(httpHandler, jmx) == null) {
httpServer.jmxManager.register(httpServer.managementObject, jmx);
}
}