An OSGi inspired service discovery API