* @return IMetaDataEnabledFeature. <br>Will return null if the type that the feature extension is bound to,
* is not a subclass of the supplied type
*/
public IMetaDataEnabledFeature getFeatureAdapterForSubclass(IMetaDataEnabledFeatureExtension feature, Class processingFeature, IType type){
if (feature != null ){
ITypeDescriptor aType = AttributeValueRuntimeTypeFactory.getInstance().getType(feature.getTypeID());
Class klass = aType.getTypeExtension().getClass();
if (klass.asSubclass(type.getClass()) != null)
return createFeature(feature, processingFeature);
}
return null;
}