public static OpenCycInferenceMode fromString(String modeName) {
      for (final OpenCycInferenceMode mode : values()) {
        if (mode.getDescription().getValue().toString().equalsIgnoreCase(modeName)) {
          return mode;
        }
      }
      return null;
    }