public static Object getServiceByFilter( BundleContext bc, String ldapFilter )
    {
        return getServiceByFilter( bc, ldapFilter, DEFAULT_TIMEOUT );
    }
public static Object getServiceByFilter ( BundleContext bc , String ldapFilter ) { return getServiceByFilter ( bc , ldapFilter , DEFAULT_TIMEOUT ) ; }
Returns a service matching the given filter.

@param bc bundle context for accessing the OSGi registry
@param ldapFilter LDAP filter to be matched by the service. The class name must be part of the
filter.
@return matching service (not null)
@throws ServiceLookupException when no matching service has been found after the default
timeout