docs: public static boolean isServiceExported(Configuration configuration, int port, String serviceName) {
          if (serviceName == null)
              return false;
          try {
              final Registry registry = RegistryFinder.getInstance().getRegistry(configuration, port);
              String[] list = registry.list();
  
              if (list != null) {
                  for (int i = 0; i < list.length; i++) {
                      if (serviceName.equals(list[i]))
                          return true;
                  }
              }
          } catch (RemoteException ex) {
              return false;
          } catch (Exception e) {
              return false;
          }
          return false;
      }