// This is the generic fallback listener, ie from
// MetadataDependencyRegistry.addListener(this) in the activate()
// method
// Get the metadata that just changed
final MetadataItem metadataItem = metadataService
.get(upstreamDependency);
// We don't have to worry about physical type metadata, as we
// monitor the relevant .java once the DOD governor is first
// detected
if (metadataItem == null
|| !metadataItem.isValid()
|| !(metadataItem instanceof ItdTypeDetailsProvidingMetadataItem)) {
// There's something wrong with it or it's not for an ITD, so
// let's gracefully abort
return;
}