class DubboParser {

  @Nullable static String service(Invoker<?> invoker) {
    URL url = invoker.getUrl();
    if (url == null) return null;
    String service = url.getServiceInterface();
    return service != null && !service.isEmpty() ? service : null;
  }

}