* @param clazz The class name with which the service was registered or <code>null</code> for all services.
* @param filterStr The filter expression or <code>null</code> for all services.
* @return A potentially empty list of <code>ServiceReference</code> objects.
*/
List<ServiceState<?>> getServiceReferences(ModuleContext context, String clazz, String filterStr, boolean checkAssignable) {
Filter filter = NoFilter.INSTANCE;
if (filterStr != null)
filter = context.createFilter(filterStr);
List<ServiceState<?>> result = getServiceReferencesInternal(context, clazz, filter, checkAssignable);
return result;