}
public void onShellStatusChange(final ShellStatus oldStatus,
final ShellStatus newStatus) {
// Handle registering use of a BSN
final ParseResult parseResult = newStatus.getParseResult();
if (parseResult == null) {
return;
}
// We use the target instance as opposed to the declaring method as we
// don't want
// the fact an add-on type inherited from another type to prevent using
// of that add-on
// from being detected
final String typeName = parseResult.getInstance().getClass().getName();
final String bundleSymbolicName = BundleFindingUtils
.findFirstBundleForTypeName(bundleContext, typeName);
if (bundleSymbolicName == null) {
return;
}