protected static Span findRootOrServerSpan(String tenantId,Span span,SpanCache spanCache){
  while (span != null && !span.serverSpan() && !span.topLevelSpan()) {
    span=spanCache.get(tenantId,span.getParentId());
  }
  return span;
}

protected static Span findRootOrServerSpan ( String tenantId , Span span , SpanCache spanCache ) { while ( span != null && ! span . serverSpan ( ) && ! span . topLevelSpan ( ) ) { span = spanCache . get ( tenantId , span . getParentId ( ) ) ; } return span ; }
this method identifies the root or enclosing server span that contains the supplied client span .
