public static <T> T getService( BundleContext bc, Class<T> type, Map<String, String> props )
    {
        return getService( bc, type, DEFAULT_TIMEOUT, props );
    }
public static < T > T getService ( BundleContext bc , Class < T > type , Map < String , String > props ) { return getService ( bc , type , DEFAULT_TIMEOUT , props ) ; }
Returns a service matching the given criteria.

@param <T> class implemented or extended by the service
@param bc bundle context for accessing the OSGi registry
@param type class implemented or extended by the service
@param props properties to be matched by the service
@return matching service (not null)
@throws ServiceLookupException when no matching service has been found after the timeout