featureNames.add(feature.getName());
}
}
try {
FeatureRegistry featureRegistry = featureRegistryProvider.get(context.getRepository());
LookupResult result = featureRegistry.getFeatureResources(context,
featureRegistry.getFeatures(featureNames), null);
List<FeatureBundle> bundles = result.getBundles();
for (FeatureBundle bundle : bundles) {
rpcEndpoints.addAll(bundle.getApis(ApiDirective.Type.RPC, false));
}
} catch (GadgetException e) {
LOG.log(Level.WARNING, "Error getting features from feature registry", e);