}
protected void register(Vertx vertx, Container container, MetricRegistry registry) {
if (vertx instanceof VertxInternal) {
VertxInternal vertxInternal = (VertxInternal) vertx;
ExecutorService executorService = vertxInternal.getBackgroundPool();
if (executorService instanceof ThreadPoolExecutor) {
final ThreadPoolExecutor executor = (ThreadPoolExecutor) executorService;
try {
registry.register(