Class typeClass = metadata instanceof ExtendedServiceReferenceMetadata
? ((ExtendedServiceReferenceMetadata) metadata).getRuntimeInterface() : null;
if (typeName == null && typeClass == null) {
return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
public ClassLoader run() {
return new BundleDelegatingClassLoader(blueprintContainer.getBundleContext().getBundle(),
AbstractServiceReferenceRecipe.class.getClassLoader());
}
});
}