in src/main/java/org/apache/sling/feature/apiregions/impl/Activator.java [145:160]
synchronized void registerWebconsoleStatus() {
if (webconsoleRegistration != null){
return; // There is already a hook, no need to re-register
}
LOG.info("Registering region printer");
RegionPrinter printer = new RegionPrinter(bundleContext,configuration);
final Dictionary<String, String> serviceProps = new Hashtable<>();
serviceProps.put("felix.webconsole.label", RegionPrinter.PATH);
serviceProps.put("felix.webconsole.title", RegionPrinter.HEADLINE);
serviceProps.put("felix.webconsole.configprinter.modes", "always");
webconsoleRegistration = bundleContext.registerService(RegionPrinter.class, printer, serviceProps);
}