private static BundleInfo bundleInfo(Object component) {
        try {
            Bundle bundle = FrameworkUtil.getBundle(component.getClass());

            String bundleName = bundle != null ?
                    bundle.getSymbolicName() + ":" + bundle.getVersion() :
                    "From classpath";
            return new BundleInfo(component.getClass().getName(), bundleName);
        } catch (Exception | NoClassDefFoundError e) {
            return new BundleInfo("Unavailable, reconfiguration in progress.", "");
        }
    }
Handler that outputs meta-info about the deployed Vespa application, and status of components and chains.

@author gjoranv
@author Einar M R Rosenvinge
@author bjorncs
container-disc/src/main/java/com/yahoo/container/handler/observability/ApplicationStatusHandler.java