Helper classes for collecting OSGi service references based on clauses and call methods based on reference availability changes