class OptionalDependencyWrapper {

  private OptionalDependencyWrapper() {
  }

  /**
   * Runs the provided {@link Supplier} implementation and catches any {@link NoClassDefFoundError}
   *
   * @param supplier implementation to safely run
   * @param message to display for caught exceptions (e.g. "Base64InputStream class is provided by
   *        commons-codec"
   * @param <R> type of supplier
   * @return run object
   */
  public static <R> R wrapRunWithOptionalDependency(Supplier<R> supplier, String message) {<FILL_FUNCTION_BODY>}
}


    try {
      return supplier.get();
    } catch (NoClassDefFoundError ex) {
      throw new KubernetesClientException(String.format(
          "%s, an optional dependency. To use this functionality you must explicitly add this dependency to the classpath.",
          message), ex);
    }
  
<no_super_class>