public boolean hasService(String pattern) {
        return getPerThreadCache().containsKey(pattern);
    }
Returns whether or not there is a service available in the pool the corresponds to the given pattern.

@param pattern The pattern to check for.
@return True if a corresponding service is in the pool.
messagebus/src/main/java/com/yahoo/messagebus/network/rpc/RPCServicePool.java