final ArrayList list = new ArrayList();
final FeatureModelManager manager = PDECore.getDefault().getFeatureModelManager();
final IProductFeature[] features = prod.getFeatures();
for (int i = 0; i < features.length; i++)
{
final IFeatureModel model = manager.findFeatureModel(features[i].getId(), features[i].getVersion());
if (model != null)
list.add(model);
}
return (IFeatureModel[]) list.toArray(new IFeatureModel[list.size()]);
}