Pattern pattern = Pattern.compile(searchQuery);
List<SearchResult> results = newArrayList();
for (Plugin plugin : extensionManager.getAllExtensionPlugins())
{
Bundle bundle = BundleUtil.findBundleForPlugin(bundleContext, plugin.getKey());
SearchResult result = new SearchResult();
result.setName(plugin.getName());
result.setKey(plugin.getKey());
if (isMatch(pattern, bundle))
{
results.add(result);
}
}