ServiceReference[] refs = bundleContext.getServiceReferences(ComponentFactory.class.getName(),
"(component.factory=com.day.cq.search.eval.PredicateEvaluator/*)");
for (ServiceReference ref : refs) {
writer.value(ref.getProperty("component.factory").toString().substring(42));
}
writer.endArray();
} catch (InvalidSyntaxException e) {
throw new ServletException(e);
} catch (JSONException e) {
throw new ServletException(e);
}